Skip to content

Commit

Permalink
feat: updated horizontal tab styles (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran McDade authored and Fran McDade committed Nov 10, 2023
1 parent 9381be5 commit 8095d95
Showing 1 changed file with 33 additions and 24 deletions.
57 changes: 33 additions & 24 deletions packages/data-explorer-ui/src/theme/common/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1296,32 +1296,8 @@ export const MuiTab = (theme: Theme): Components["MuiTab"] => {
padding: 12,
textTransform: "capitalize",
// eslint-disable-next-line sort-keys -- disabling key order for readability
"&:hover": {
color: theme.palette.ink.main,
overflow: "visible",
// eslint-disable-next-line sort-keys -- disabling key order for readability
"&:after": {
backgroundColor: theme.palette.smoke.dark,
borderRadius: "12px 12px 0 0",
bottom: -3,
content: '""',
height: 3,
left: 0,
position: "absolute",
width: "100%",
},
},
// eslint-disable-next-line sort-keys -- disabling key order for readability
"&.Mui-selected": {
color: theme.palette.ink.main,
// eslint-disable-next-line sort-keys -- disabling key order for readability
"&:hover": {
overflow: "unset",
// eslint-disable-next-line sort-keys -- disabling key order for readability
"&:after": {
content: "none",
},
},
},
// eslint-disable-next-line sort-keys -- disabling key order for readability
"& > .MuiTab-iconWrapper": {
Expand Down Expand Up @@ -1402,6 +1378,39 @@ export const MuiTabs = (theme: Theme): Components["MuiTabs"] => {
styleOverrides: {
flexContainer: {
gap: 8,
// eslint-disable-next-line sort-keys -- disabling key order for readability
"&:not(.MuiTabs-flexContainerVertical)": {
// eslint-disable-next-line sort-keys -- disabling key order for readability
".MuiTab-root": {
// eslint-disable-next-line sort-keys -- disabling key order for readability
"&:hover": {
color: theme.palette.ink.main,
overflow: "visible",
// eslint-disable-next-line sort-keys -- disabling key order for readability
"&:after": {
backgroundColor: theme.palette.smoke.dark,
borderRadius: "12px 12px 0 0",
bottom: -3,
content: '""',
height: 3,
left: 0,
position: "absolute",
width: "100%",
},
},
// eslint-disable-next-line sort-keys -- disabling key order for readability
"&.Mui-selected": {
// eslint-disable-next-line sort-keys -- disabling key order for readability
"&:hover": {
overflow: "unset",
// eslint-disable-next-line sort-keys -- disabling key order for readability
"&:after": {
content: "none",
},
},
},
},
},
},
indicator: {
borderTopLeftRadius: 12,
Expand Down

0 comments on commit 8095d95

Please sign in to comment.