Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eab8605

Browse files
authored
fix(mantine): minor adjustments to the theme (#3532)
* 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]
1 parent a48d148 commit eab8605

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

packages/mantine/src/theme/Theme.tsx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,9 @@ export const plasmaTheme: MantineThemeOverride = {
379379
root: {
380380
color: theme.colors.gray[6],
381381
borderRadius: `${theme.defaultRadius}px 0px 0px ${theme.defaultRadius}px`,
382+
...theme.fn.hover({
383+
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[6] : theme.colors.gray[1],
384+
}),
382385
},
383386
label: {
384387
ref: getStylesRef('label'),
@@ -391,5 +394,29 @@ export const plasmaTheme: MantineThemeOverride = {
391394
},
392395
}),
393396
},
397+
Navbar: {
398+
styles: (theme) => ({
399+
root: {
400+
borderColor: theme.colors.gray[3],
401+
},
402+
}),
403+
},
404+
ScrollArea: {
405+
styles: {
406+
viewport: {
407+
// https://github.com/radix-ui/primitives/issues/926
408+
'&[data-radix-scroll-area-viewport]': {
409+
'& > :first-of-type': {
410+
display: 'block !important',
411+
},
412+
},
413+
},
414+
},
415+
},
416+
Divider: {
417+
defaultProps: {
418+
color: 'gray.3',
419+
},
420+
},
394421
},
395422
};

packages/website/src/pages/_app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {EngineProvider} from '../search/engine/EngineProvider';
2727
import LegacyWarningBanner from '../building-blocs/LegacyWarningBanner';
2828

2929
const Header = () => (
30-
<MantineHeader height={100}>
30+
<MantineHeader height={100} withBorder={false}>
3131
<Group
3232
position="apart"
3333
px="lg"

0 commit comments

Comments
 (0)