mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 05:10:45 +00:00
CE-740 Update breadcrumb size, weight, and color
This commit is contained in:
@ -25,6 +25,7 @@ import Icon from "@mui/material/Icon";
|
|||||||
import {ReactNode, useContext} from "react";
|
import {ReactNode, useContext} from "react";
|
||||||
import {Link} from "react-router-dom";
|
import {Link} from "react-router-dom";
|
||||||
import QContext from "QContext";
|
import QContext from "QContext";
|
||||||
|
import pxToRem from "qqq/assets/theme/functions/pxToRem";
|
||||||
import MDTypography from "qqq/components/legacy/MDTypography";
|
import MDTypography from "qqq/components/legacy/MDTypography";
|
||||||
|
|
||||||
interface Props
|
interface Props
|
||||||
@ -112,35 +113,23 @@ function QBreadcrumbs({icon, title, route, light}: Props): JSX.Element
|
|||||||
<Box mr={{xs: 0, xl: 8}}>
|
<Box mr={{xs: 0, xl: 8}}>
|
||||||
<MuiBreadcrumbs
|
<MuiBreadcrumbs
|
||||||
sx={{
|
sx={{
|
||||||
|
fontSize: pxToRem(18),
|
||||||
|
fontWeight: "500",
|
||||||
|
color: "#757575",
|
||||||
|
"& a": {
|
||||||
|
color: "#757575"
|
||||||
|
},
|
||||||
"& .MuiBreadcrumbs-separator": {
|
"& .MuiBreadcrumbs-separator": {
|
||||||
color: ({palette: {white, grey}}) => (light ? white.main : grey[600]),
|
color: ({palette: {white, grey}}) => (light ? white.main : grey[600]),
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Link to="/">
|
<Link to="/">
|
||||||
<MDTypography
|
|
||||||
component="span"
|
|
||||||
variant="body2"
|
|
||||||
color={light ? "white" : "dark"}
|
|
||||||
opacity={light ? 0.8 : 0.5}
|
|
||||||
sx={{lineHeight: 0}}
|
|
||||||
>
|
|
||||||
<Icon>{icon}</Icon>
|
<Icon>{icon}</Icon>
|
||||||
</MDTypography>
|
|
||||||
</Link>
|
</Link>
|
||||||
{fullRoutes.map((fullRoute: string) => (
|
{fullRoutes.map((fullRoute: string) => (
|
||||||
<Link to={fullRoute} key={fullRoute}>
|
<Link to={fullRoute} key={fullRoute}>
|
||||||
<MDTypography
|
|
||||||
component="span"
|
|
||||||
variant="button"
|
|
||||||
fontWeight="regular"
|
|
||||||
textTransform="capitalize"
|
|
||||||
color={light ? "white" : "dark"}
|
|
||||||
opacity={light ? 0.8 : 0.5}
|
|
||||||
sx={{lineHeight: 0}}
|
|
||||||
>
|
|
||||||
{fullPathToLabel(fullRoute, fullRoute.replace(/.*\//, ""))}
|
{fullPathToLabel(fullRoute, fullRoute.replace(/.*\//, ""))}
|
||||||
</MDTypography>
|
|
||||||
</Link>
|
</Link>
|
||||||
))}
|
))}
|
||||||
</MuiBreadcrumbs>
|
</MuiBreadcrumbs>
|
||||||
|
Reference in New Issue
Block a user