Skip to content

Commit

Permalink
Add backgroundImage style property (#800)
Browse files Browse the repository at this point in the history
* Add backgroundImage style property

* Create nervous-keys-film.md
  • Loading branch information
hvergara authored Nov 19, 2021
1 parent 6111a9c commit c8ce944
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nervous-keys-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aws-amplify/ui-react": patch
---

Add backgroundImage style property
1 change: 1 addition & 0 deletions packages/react/src/primitives/shared/styleUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ const BaseStylePropsMap: Required<{ [key in keyof BaseStyleProps]: true }> = {
alignSelf: true,
area: true,
backgroundColor: true,
backgroundImage: true,
basis: true,
border: true,
borderRadius: true,
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/primitives/types/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export type ResponsiveStyle<PropertyType> =
export interface BaseStyleProps extends FlexItemStyleProps, GridItemStyleProps {
alignSelf?: ResponsiveStyle<StyleToken<Property.AlignSelf>>;
backgroundColor?: ResponsiveStyle<StyleToken<Property.BackgroundColor>>;
backgroundImage?: ResponsiveStyle<StyleToken<Property.BackgroundImage>>;
border?: ResponsiveStyle<StyleToken<Property.Border>>;
borderRadius?: ResponsiveStyle<StyleToken<Property.BorderRadius>>;
bottom?: ResponsiveStyle<StyleToken<Property.Bottom>>;
Expand Down Expand Up @@ -130,6 +131,7 @@ export const ComponentPropsToStylePropsMap: ComponentPropToStyleProp = {
autoFlow: 'gridAutoFlow',
autoRows: 'gridAutoRows',
backgroundColor: 'backgroundColor',
backgroundImage: 'backgroundImage',
basis: 'flexBasis',
border: 'border',
borderRadius: 'borderRadius',
Expand Down

0 comments on commit c8ce944

Please sign in to comment.