Add name for BackstageTab styles
Signed-off-by: sandra-greenhalgh <sandra.greenhalgh@justeattakeaway.com>
This commit is contained in:
@@ -37,24 +37,27 @@ const tabMarginLeft = (isFirstNav: boolean, isFirstIndex: boolean) => {
|
||||
return '40px';
|
||||
};
|
||||
|
||||
const useStyles = makeStyles<BackstageTheme, StyledTabProps>(theme => ({
|
||||
root: {
|
||||
textTransform: 'none',
|
||||
height: '64px',
|
||||
fontWeight: theme.typography.fontWeightBold,
|
||||
fontSize: theme.typography.pxToRem(13),
|
||||
color: theme.palette.textSubtle,
|
||||
marginLeft: props =>
|
||||
tabMarginLeft(props.isFirstNav as boolean, props.isFirstIndex as boolean),
|
||||
width: '130px',
|
||||
minWidth: '130px',
|
||||
'&:hover': {
|
||||
outline: 'none',
|
||||
backgroundColor: 'transparent',
|
||||
const useStyles = makeStyles<BackstageTheme, StyledTabProps>(
|
||||
theme => ({
|
||||
root: {
|
||||
textTransform: 'none',
|
||||
height: '64px',
|
||||
fontWeight: theme.typography.fontWeightBold,
|
||||
fontSize: theme.typography.pxToRem(13),
|
||||
color: theme.palette.textSubtle,
|
||||
marginLeft: props =>
|
||||
tabMarginLeft(props.isFirstNav as boolean, props.isFirstIndex as boolean),
|
||||
width: '130px',
|
||||
minWidth: '130px',
|
||||
'&:hover': {
|
||||
outline: 'none',
|
||||
backgroundColor: 'transparent',
|
||||
color: theme.palette.textSubtle,
|
||||
},
|
||||
},
|
||||
},
|
||||
}));
|
||||
}),
|
||||
{ name: 'BackstageTab' },
|
||||
);
|
||||
|
||||
export const StyledTab = (props: StyledTabProps) => {
|
||||
const classes = useStyles(props);
|
||||
|
||||
Reference in New Issue
Block a user