Skip to content

Commit

Permalink
[docs][joy] Update Customization section code example to use the corr…
Browse files Browse the repository at this point in the history
…ect API (#35765)
  • Loading branch information
pupudu authored Jan 16, 2023
1 parent d1088e6 commit 4d33283
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/data/joy/customization/approaches/approaches.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,12 @@ const theme = extendTheme({
components: {
// The component identifier always start with `Joy${ComponentName}`.
JoyButton: {
styleOverrides: ({ theme }) => ({
// theme.vars.* return the CSS variables.
fontSize: theme.vars.fontSize.lg, // 'var(--joy-fontSize-lg)'
}),
styleOverrides: {
root: ({ theme }) => {
// theme.vars.* return the CSS variables.
fontSize: theme.vars.fontSize.lg, // 'var(--joy-fontSize-lg)'
},
},
},
},
});
Expand Down

0 comments on commit 4d33283

Please sign in to comment.