Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions docs/guides/using-theme-overrides.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,17 @@ type: example

<div>
<Button color='primary'
themeOverride={{ primaryBackground: "purple" }}
themeOverride={{
primaryBackground: "purple",
borderRadius: '999rem'
}}
margin="small 0 large">
Purple Primary Button
Purple Primary Button with rounded corners
</Button>
<InstUISettingsProvider
theme={{
componentOverrides: {
TextInput: { background: "yellow" }
TextInput: { backgroundColor: "yellow" }
}
}}
>
Expand Down
2 changes: 1 addition & 1 deletion packages/emotion/src/withStyle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const withStyle = decorator(
theme,
displayName,
ComposedComponent.componentId,
(componentProps as any).themeOverride,
(componentProps as ThemeOverrideProp).themeOverride,
baseComponentTheme
)

Expand Down
2 changes: 1 addition & 1 deletion packages/emotion/src/withStyleRework.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const withStyleRework = decorator(
theme,
displayName,
ComposedComponent.componentId,
componentProps,
(componentProps as ThemeOverrideProp).themeOverride,
componentTheme
)

Expand Down
Loading