Open hastebrot opened 5 years ago
Screenshot of Menu.mdx
:
Update: I've tested if the theme for Menu.Group.title
is still applied, when title
is an element/object instead of a string. Seems to work fine.
export const localTheme = () => ({
Menu: {
base: css`
border: 1px solid ${palette.keylines};
background-color: ${palette.white};
`,
Group: {
base: css`
cursor: pointer;
user-select: none;
`,
title: css`
font-family: ${typography.fontFamily.default};
text-transform: uppercase;
font-size: ${theme("fannypack.fontSizes.200")}em;
font-weight: ${typography.fontWeight.regular};
color: ${palette.black};
`
},
Would be useful when
Menu.Group#title
would be also allowelement
in addition tostring
. So it's easier to combine<Hidden.Container>
and<Menu.Group>
.Warning message in browser console:
Current
propTypes
:Proposed
propTypes
:Example
Menu.jsx
:Example
Menu.mdx
: