💄(frontend) create padding variants for TabPanel
Inspired by other videoconferencing tools' designs. Sizes are mixing pixels and rem, it should be harmonized. Will be used by the advanced settings panels.
This commit is contained in:
committed by
aleb_the_flash
parent
e41656a760
commit
6a7ec95493
@@ -150,7 +150,6 @@ export const TabList = ({ children, border, ...props }: TabListProps) => {
|
||||
const StyledTabPanel = styled(RACTabPanel, {
|
||||
base: {
|
||||
marginTop: '4px',
|
||||
padding: '10px',
|
||||
borderRadius: '4px',
|
||||
outline: 'none',
|
||||
'&[data-focus-visible]': {
|
||||
@@ -165,6 +164,18 @@ const StyledTabPanel = styled(RACTabPanel, {
|
||||
overflow: 'auto',
|
||||
},
|
||||
},
|
||||
padding: {
|
||||
sm: {
|
||||
padding: '10px',
|
||||
},
|
||||
md: {
|
||||
padding: '2rem',
|
||||
},
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
padding: 'sm',
|
||||
flex: false,
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user