diff --git a/docs/pages/_app.js b/docs/pages/_app.js
index b17a4b54351526..a9b1066aac2118 100644
--- a/docs/pages/_app.js
+++ b/docs/pages/_app.js
@@ -163,7 +163,7 @@ function AppWrapper(props) {
if (productId === 'material-ui') {
return {
- metadata: 'MUI Core',
+ metadata: '',
name: 'Material UI',
versions: [
{ text: `v${materialPkgJson.version}`, current: true },
@@ -182,7 +182,7 @@ function AppWrapper(props) {
if (productId === 'joy-ui') {
return {
- metadata: 'MUI Core',
+ metadata: '',
name: 'Joy UI',
versions: [{ text: `v${joyPkgJson.version}`, current: true }],
};
@@ -190,7 +190,7 @@ function AppWrapper(props) {
if (productId === 'system') {
return {
- metadata: 'MUI Core',
+ metadata: '',
name: 'MUI System',
versions: [
{ text: `v${systemPkgJson.version}`, current: true },
@@ -206,7 +206,7 @@ function AppWrapper(props) {
if (productId === 'base-ui') {
return {
- metadata: 'MUI Core',
+ metadata: '',
name: 'Base UI',
versions: [{ text: `v${basePkgJson.version}`, current: true }],
};
diff --git a/docs/pages/experiments/website/branding-theme-test.tsx b/docs/pages/experiments/website/branding-theme-test.tsx
index 82e5393540bdbf..67140e15e00d5b 100644
--- a/docs/pages/experiments/website/branding-theme-test.tsx
+++ b/docs/pages/experiments/website/branding-theme-test.tsx
@@ -43,7 +43,7 @@ export default function BrandingThemeTest() {
-
@@ -121,8 +118,8 @@ function ProductIdentifier(props) {
({
- ml: 1,
- fontSize: theme.typography.pxToRem(11),
+ ml: '6px',
+ fontSize: theme.typography.pxToRem(10),
fontWeight: theme.typography.fontWeightBold,
textTransform: 'uppercase',
letterSpacing: '.1rem',
@@ -184,7 +181,7 @@ PersistScroll.propTypes = {
};
const ToolbarDiv = styled('div')(({ theme }) => ({
- padding: theme.spacing(1.6, 2),
+ padding: theme.spacing(1.5),
paddingRight: 0,
flexShrink: 0,
height: 'var(--MuiDocs-header-height)',
@@ -193,6 +190,8 @@ const ToolbarDiv = styled('div')(({ theme }) => ({
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
+ borderBottom: '1px solid',
+ borderColor: (theme.vars || theme).palette.divider,
}));
const StyledDrawer = styled(Drawer)(({ theme }) => ({
@@ -323,7 +322,7 @@ export default function AppNavDrawer(props) {
const drawer = React.useMemo(() => {
const navItems = renderNavItems({ onClose, pages, activePageParents, depth: 0, t });
- const renderVersionSelector = (versions, sx) => {
+ const renderVersionSelector = (versions) => {
if (!versions?.length) {
return null;
}
@@ -332,6 +331,9 @@ export default function AppNavDrawer(props) {
return (
{
setAnchorEl(event.currentTarget);
@@ -341,24 +343,7 @@ export default function AppNavDrawer(props) {
) : null
}
- sx={[
- (theme) => ({
- py: 0.1,
- minWidth: 0,
- fontSize: theme.typography.pxToRem(13),
- fontWeight: 500,
- color: (theme.vars || theme).palette.primary[600],
- '& svg': {
- ml: -0.6,
- width: 18,
- height: 18,
- },
- ...theme.applyDarkStyles({
- color: (theme.vars || theme).palette.primary[300],
- }),
- }),
- ...(Array.isArray(sx) ? sx : [sx]),
- ]}
+ sx={customButtonStyles}
>
{currentVersion.text}
@@ -371,7 +356,7 @@ export default function AppNavDrawer(props) {
{versions.map((item) => {
if (item.text === 'View all versions') {
return [
- ,
+ ,
);
})}
@@ -405,17 +390,7 @@ export default function AppNavDrawer(props) {
-
+
@@ -425,7 +400,6 @@ export default function AppNavDrawer(props) {
versionSelector={renderVersionSelector(productIdentifier.versions)}
/>
-
[
{
- minHeight: 34,
- minWidth: 34,
+ minHeight: 32,
+ minWidth: 32,
+ margin: 0,
+ paddingLeft: theme.spacing(1),
display: 'flex',
alignItems: 'center',
- margin: 0,
- paddingLeft: theme.spacing(0.6),
+ gap: '6px',
[theme.breakpoints.only('xs')]: {
backgroundColor: 'transparent',
padding: 0,
@@ -44,20 +45,21 @@ const SearchButton = styled('button')(({ theme }) => [
display: 'none',
},
},
- fontFamily: theme.typography.fontFamily,
position: 'relative',
- backgroundColor: (theme.vars || theme).palette.grey[50],
- color: (theme.vars || theme).palette.text.secondary,
+ backgroundColor: alpha(theme.palette.grey[50], 0.6),
+ fontFamily: theme.typography.fontFamily,
fontSize: theme.typography.pxToRem(14),
+ color: (theme.vars || theme).palette.text.secondary,
border: `1px solid ${(theme.vars || theme).palette.grey[200]}`,
borderRadius: (theme.vars || theme).shape.borderRadius,
cursor: 'pointer',
transitionProperty: 'all',
transitionDuration: '150ms',
- boxShadow: `hsl(200, 0%, 100%) 0 2px 0 inset, ${alpha(theme.palette.grey[100], 0.5)} 0 -1.5px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
+ boxShadow: `hsl(200, 0%, 100%) 0 1px 0 inset, ${alpha(theme.palette.grey[100], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
'&:hover': {
- background: (theme.vars || theme).palette.grey[100],
+ background: alpha(theme.palette.grey[100], 0.5),
borderColor: (theme.vars || theme).palette.grey[300],
+ boxShadow: 'none',
},
'&:focus-visible': {
outline: `3px solid ${alpha(theme.palette.primary[500], 0.5)}`,
@@ -66,25 +68,29 @@ const SearchButton = styled('button')(({ theme }) => [
},
theme.applyDarkStyles({
backgroundColor: alpha(theme.palette.primaryDark[700], 0.4),
- borderColor: (theme.vars || theme).palette.primaryDark[700],
- boxShadow: `${alpha(theme.palette.primaryDark[600], 0.1)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
+ borderColor: alpha(theme.palette.primaryDark[600], 0.4),
+ boxShadow: `${alpha(theme.palette.primaryDark[600], 0.1)} 0 1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
'&:hover': {
background: (theme.vars || theme).palette.primaryDark[700],
borderColor: (theme.vars || theme).palette.primaryDark[600],
+ boxShadow: 'none',
},
}),
]);
const SearchLabel = styled('span')(({ theme }) => ({
- marginLeft: theme.spacing(1),
marginRight: 'auto',
+ marginBottom: '1px', // optical alignment
+ color: (theme.vars || theme).palette.text.tertiary,
+ lineHeight: 1,
}));
-const Shortcut = styled('div')(({ theme }) => {
+const Shortcut = styled('kbd')(({ theme }) => {
return {
+ all: 'unset',
fontSize: theme.typography.pxToRem(12),
fontWeight: 'bold',
- lineHeight: '20px',
+ lineHeight: '19px',
marginLeft: theme.spacing(0.5),
border: `1px solid ${(theme.vars || theme).palette.grey[200]}`,
backgroundColor: '#FFF',
@@ -427,15 +433,7 @@ export default function AppSearch(props) {
aria-labelledby="app-search-label"
{...props}
>
- ({
- color: 'primary.500',
- ...theme.applyDarkStyles({
- color: 'primary.300',
- }),
- })}
- />
+
{t('searchButton')}
{/* eslint-disable-next-line material-ui/no-hardcoded-labels */}
diff --git a/docs/src/modules/components/ComponentPageTabs.js b/docs/src/modules/components/ComponentPageTabs.js
index 98ae5157e10a34..422eb252bf0a52 100644
--- a/docs/src/modules/components/ComponentPageTabs.js
+++ b/docs/src/modules/components/ComponentPageTabs.js
@@ -100,9 +100,9 @@ export default function ComponentPageTabs(props) {
className="component-tabs"
sx={{
position: 'sticky',
- top: 65, // to be positioned below the app bar
- width: '100%',
+ top: 57, // to be positioned below the app bar
mt: 2,
+ mx: { xs: -2, sm: -1 },
backgroundColor: 'background.default',
borderBottom: 1,
borderColor: 'divider',
diff --git a/docs/src/modules/components/Notifications.js b/docs/src/modules/components/Notifications.js
index 265312ae688114..d4b4ff1628b9f8 100644
--- a/docs/src/modules/components/Notifications.js
+++ b/docs/src/modules/components/Notifications.js
@@ -167,6 +167,7 @@ export default function Notifications() {
>
({
+ borderRadius: theme.shape.borderRadius,
+ ...(ownerState.size === 'small' && {
+ height: 32,
+ width: 32,
+ '& .MuiSvgIcon-root': {
+ fontSize: defaultTheme.typography.pxToRem(18),
+ },
+ }),
+ }),
+ },
variants: [
{
props: { color: 'primary' },
style: ({ theme }) => [
{
- height: 34,
- width: 34,
border: `1px solid`,
- borderRadius: theme.shape.borderRadius,
color: (theme.vars || theme).palette.primary.main,
backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
borderColor: (theme.vars || theme).palette.primaryDark[100],
- boxShadow: `${alpha(theme.palette.grey[50], 0.4)} 0 2px 0 inset, ${alpha(theme.palette.grey[100], 0.5)} 0 -1.5px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
+ boxShadow: `${alpha(theme.palette.grey[200], 0.5)} 0 1px 0 inset, ${alpha(theme.palette.grey[100], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
'&:hover': {
borderColor: (theme.vars || theme).palette.grey[300],
background: (theme.vars || theme).palette.grey[50],
@@ -724,10 +752,10 @@ export function getThemedComponents(): ThemeOptions {
color: (theme.vars || theme).palette.primary[300],
borderColor: alpha(theme.palette.primaryDark[600], 0.5),
backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
- boxShadow: `${alpha(theme.palette.primaryDark[600], 0.2)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
+ boxShadow: `${alpha(theme.palette.primaryDark[600], 0.3)} 0 1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
'&:hover': {
- borderColor: (theme.vars || theme).palette.primaryDark[500],
- background: alpha(theme.palette.primaryDark[700], 0.4),
+ borderColor: (theme.vars || theme).palette.primaryDark[600],
+ background: alpha(theme.palette.primaryDark[700], 0.8),
},
}),
],
@@ -736,14 +764,12 @@ export function getThemedComponents(): ThemeOptions {
props: { color: 'info' },
style: ({ theme }) => [
{
- height: 34,
- width: 34,
color: (theme.vars || theme).palette.text.tertiary,
borderRadius: theme.shape.borderRadius,
border: `1px solid`,
backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
borderColor: (theme.vars || theme).palette.primaryDark[100],
- boxShadow: `${alpha(theme.palette.grey[50], 0.4)} 0 2px 0 inset, ${alpha(theme.palette.grey[100], 0.5)} 0 -1.5px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
+ boxShadow: `${alpha(theme.palette.grey[50], 0.4)} 0 1px 0 inset, ${alpha(theme.palette.grey[100], 0.5)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
'&:hover': {
color: (theme.vars || theme).palette.primary.main,
borderColor: (theme.vars || theme).palette.grey[300],
@@ -753,7 +779,7 @@ export function getThemedComponents(): ThemeOptions {
theme.applyDarkStyles({
borderColor: alpha(theme.palette.primaryDark[600], 0.5),
backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
- boxShadow: `${alpha(theme.palette.primaryDark[600], 0.2)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
+ boxShadow: `${alpha(theme.palette.primaryDark[600], 0.2)} 0 1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
'&:hover': {
color: (theme.vars || theme).palette.primary[400],
borderColor: (theme.vars || theme).palette.primaryDark[500],
@@ -768,6 +794,7 @@ export function getThemedComponents(): ThemeOptions {
styleOverrides: {
paper: ({ theme }) => [
{
+ padding: '6px',
minWidth: 160,
color: (theme.vars || theme).palette.text.secondary,
backgroundImage: 'none',
@@ -775,8 +802,10 @@ export function getThemedComponents(): ThemeOptions {
backgroundColor: (theme.vars || theme).palette.background.paper,
borderColor: (theme.vars || theme).palette.grey[200],
'& .MuiMenuItem-root': {
+ padding: '6px 12px',
+ borderRadius: '6px',
fontSize: theme.typography.pxToRem(14),
- fontWeight: 500,
+ fontWeight: theme.typography.fontWeightMedium,
'&:hover, &:focus': {
backgroundColor: (theme.vars || theme).palette.grey[100],
color: (theme.vars || theme).palette.text.primary,
@@ -799,7 +828,7 @@ export function getThemedComponents(): ThemeOptions {
backgroundColor: (theme.vars || theme).palette.primaryDark[700],
},
'&.Mui-selected': {
- color: (theme.vars || theme).palette.primary[300],
+ color: (theme.vars || theme).palette.primary[200],
backgroundColor: alpha(theme.palette.primary[900], 0.4),
},
},