Skip to content

Commit

Permalink
fix(mantine): minor adjustments to the theme (#3532)
Browse files Browse the repository at this point in the history
* Hover color of NavLink is now gray[1] instead of gray[0]
* ScrollArea display block instead of display table
* Divider default color is now gray[3]  instead of gray[4]
* Navbar border color is now gray[3] instead of gray[2]
  • Loading branch information
gdostie authored Sep 5, 2023
1 parent a48d148 commit eab8605
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions packages/mantine/src/theme/Theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,9 @@ export const plasmaTheme: MantineThemeOverride = {
root: {
color: theme.colors.gray[6],
borderRadius: `${theme.defaultRadius}px 0px 0px ${theme.defaultRadius}px`,
...theme.fn.hover({
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[6] : theme.colors.gray[1],
}),
},
label: {
ref: getStylesRef('label'),
Expand All @@ -391,5 +394,29 @@ export const plasmaTheme: MantineThemeOverride = {
},
}),
},
Navbar: {
styles: (theme) => ({
root: {
borderColor: theme.colors.gray[3],
},
}),
},
ScrollArea: {
styles: {
viewport: {
// https://github.com/radix-ui/primitives/issues/926
'&[data-radix-scroll-area-viewport]': {
'& > :first-of-type': {
display: 'block !important',
},
},
},
},
},
Divider: {
defaultProps: {
color: 'gray.3',
},
},
},
};
2 changes: 1 addition & 1 deletion packages/website/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {EngineProvider} from '../search/engine/EngineProvider';
import LegacyWarningBanner from '../building-blocs/LegacyWarningBanner';

const Header = () => (
<MantineHeader height={100}>
<MantineHeader height={100} withBorder={false}>
<Group
position="apart"
px="lg"
Expand Down

0 comments on commit eab8605

Please sign in to comment.