Skip to content

Commit

Permalink
more fine-tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Sep 21, 2023
1 parent 725235c commit 3dfa8e1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/src/components/action/Highlighter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,16 @@ export default function Highlighter({
transitionProperty: 'all',
transitionDuration: '150ms',
color: 'primary.300',
overflow: 'auto',
...((!disableBorder || selected) && {
borderColor: 'grey.100',
}),
...(selected && {
bgcolor: '#FFF',
bgcolor: `${alpha(theme.palette.primary[50], 0.5)}`,
borderColor: 'primary.300',
boxShadow: `0px 1px 6px ${
(theme.vars || theme).palette.primary[100]
}, inset 0px 2px 8px ${(theme.vars || theme).palette.grey[50]}`,
boxShadow: `0px 1px 4px ${
(theme.vars || theme).palette.primary[200]
}, inset 0px 2px 4px ${alpha(theme.palette.primary[100], 0.5)}`,
color: 'primary.500',
}),
...(!selected && {
Expand All @@ -68,10 +69,9 @@ export default function Highlighter({
...theme.applyDarkStyles({
color: 'primary.800',
...((!disableBorder || selected) && {
borderColor: 'primaryDark.700',
borderColor: `${alpha(theme.palette.primaryDark[600], 0.3)}`,
}),
...(!selected && {
borderColor: `${alpha(theme.palette.primaryDark[600], 0.3)}`,
'&:hover, &:focus': {
bgcolor: `${alpha(theme.palette.primary[800], 0.1)}`,
borderColor: `${alpha(theme.palette.primary[500], 0.3)}`,
Expand All @@ -84,9 +84,9 @@ export default function Highlighter({
bgcolor: `${alpha(theme.palette.primary[800], 0.3)}`,
borderColor: 'primary.700',
color: 'primary.300',
boxShadow: `0px 1px 6px ${
(theme.vars || theme).palette.primary[800]
}, inset 0px 2px 8px ${(theme.vars || theme).palette.primaryDark[800]}`,
boxShadow: `0px 1px 4px ${
(theme.vars || theme).palette.primary[900]
}, inset 0px 2px 4px ${(theme.vars || theme).palette.primaryDark[800]}`,
}),
}),
'&.Mui-disabled': {
Expand Down

0 comments on commit 3dfa8e1

Please sign in to comment.