Skip to content

Commit

Permalink
beta chip
Browse files Browse the repository at this point in the history
  • Loading branch information
prakhargupta1 committed Aug 21, 2024
1 parent 6bb06b9 commit e695075
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 5 deletions.
36 changes: 31 additions & 5 deletions docs/src/components/header/HeaderNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,23 @@ const ProductSubMenu = React.forwardRef<HTMLAnchorElement, ProductSubMenuProps>(
>
<Box sx={{ px: 2 }}>{icon}</Box>
<Box sx={{ flexGrow: 1 }}>
<Typography variant="body2" sx={{ color: 'text.primary', fontWeight: 'bold' }}>
{name}
</Typography>
<Box
sx={{
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
gap: '6px',
}}
>
<Typography variant="body2" sx={{ color: 'text.primary', fontWeight: 'bold' }}>
{name}
</Typography>
{chip}
</Box>
<Typography variant="body2" sx={{ color: 'text.secondary' }}>
{description}
</Typography>
</Box>
{chip}
</Box>
);
},
Expand Down Expand Up @@ -303,7 +312,24 @@ export default function HeaderNavBar() {
href={ROUTES.productToolpad}
icon={<IconImage name="product-toolpad" />}
name="Toolpad"
chip={<Chip label="Beta" size="small" color="primary" variant="outlined" />}
chip={
<Chip
label="Beta"
size="small"
color="primary"
variant="outlined"
sx={{
fontSize: '.625rem',
fontWeight: 'semiBold',
textTransform: 'uppercase',
letterSpacing: '.04rem',
height: '16px',
'& .MuiChip-label': {
px: '4px',
},
}}
/>
}
description="Components and tools for dashboards and internal apps."
/>
</li>
Expand Down
20 changes: 20 additions & 0 deletions docs/src/components/header/HeaderNavDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,16 @@ export default function HeaderNavDropdown() {
label={item.chip}
color="primary"
variant="outlined"
sx={{
fontSize: '.625rem',
fontWeight: 'semiBold',
textTransform: 'uppercase',
letterSpacing: '.04rem',
height: '16px',
'& .MuiChip-label': {
px: '4px',
},
}}
/>
) : null}
</Box>
Expand Down Expand Up @@ -280,6 +290,16 @@ export default function HeaderNavDropdown() {
label={item.chip}
color="primary"
variant="outlined"
sx={{
fontSize: '.625rem',
fontWeight: 'semiBold',
textTransform: 'uppercase',
letterSpacing: '.04rem',
height: '16px',
'& .MuiChip-label': {
px: '4px',
},
}}
/>
) : null}
</Box>
Expand Down

0 comments on commit e695075

Please sign in to comment.