Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Modification Request] Add background image props to Hero component #793

Open
jjwinskill opened this issue Oct 17, 2024 · 0 comments
Open
Labels

Comments

@jjwinskill
Copy link

jjwinskill commented Oct 17, 2024

Many Primer Brand components, like Section and BreakoutBanner, follow a common pattern of accepting props that support a background image. We'd like to extend this pattern to the Hero component so we don't need a bespoke solution to using a background image with the Hero.

Specifically, would it be possible to add the following properties to the Hero component? (here I'm using packages/react/src/Section/Section.tsx for the sub types):

backgroundColor?: BackgroundColors | ResponsiveBackgroundColorMap
backgroundImageSrc?: string | string[] | ResponsiveBackgroundImageSrcMap
backgroundImagePosition?: string | string[] | ResponsiveBackgroundImagePositionMap
backgroundImageSize?: string | string[] | ResponsiveBackgroundImageSizeMap

This is similar to a separate request for the CTA banner #756

@rezrah rezrah added the brand label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants