Skip to content

Commit

Permalink
Merge pull request #254 from Availity/fix/legacy-checkbox
Browse files Browse the repository at this point in the history
fix(theme): legacy checkbox and radio colors
  • Loading branch information
LauRoxx authored Apr 17, 2024
2 parents 40b20a2 + 4c26159 commit 1ba7285
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions packages/theme/src/lib/legacy-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -752,9 +752,9 @@ export const legacyTheme = {
color: tokens.colorGrey900,
},
'&.Mui-checked': {
color: tokens.colorPrimaryMain,
color: '#0075ff',
'&:hover': {
color: tokens.colorPrimaryDark,
color: tokens.colorPrimaryMain,
},
},
'&.Mui-disabled': {
Expand All @@ -777,6 +777,7 @@ export const legacyTheme = {
},
},
'.MuiSvgIcon-root': {
backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1em 1em' overflow='visible'%3E%3Crect x='16%' y='16%' rx='1' ry='1' width='68%' height='68%' stroke='transparent' fill='white' stroke-width='1' %3E%3C/rect%3E%3C/svg%3E")`,
fontSize: '1rem',
},
},
Expand Down Expand Up @@ -1380,12 +1381,28 @@ export const legacyTheme = {
root: {
padding: '4px',
'.MuiSvgIcon-root': {
backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1em 1em' overflow='visible'%3E%3Ccircle cx='50%' cy='50%' r='34%' stroke='transparent' fill='white' stroke-width='1' %3E%3C/circle%3E%3C/svg%3E")`,
fontSize: '1rem',
},
'&.Mui-focusVisible .MuiSvgIcon-root:first-of-type': {
boxShadow: `0 0 0px 2px ${tokens.colorPrimaryMain}`,
borderRadius: '50%',
},
'&.MuiRadio-colorPrimary': {
color: tokens.colorGrey500,
'&:hover': {
color: tokens.colorGrey900,
},
'&.Mui-checked': {
color: '#0075ff',
'&:hover': {
color: tokens.colorPrimaryMain,
},
},
'&.Mui-disabled': {
color: tokens.colorGrey300,
},
},
},
},
},
Expand Down

0 comments on commit 1ba7285

Please sign in to comment.