Skip to content

Commit

Permalink
(fix) adjust the Grommet button theme to prevent overwriting
Browse files Browse the repository at this point in the history
  • Loading branch information
nozomione committed Sep 18, 2023
1 parent 602c350 commit 11b2e34
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions client/src/theme/button.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
const defaultBorder = { radius: '4px', width: '1px' }

export default {
border: {
radius: '4px',
width: '1px'
},
color: 'brand',
default: {
color: 'brand',
border: { color: 'brand', width: '1px' },
border: { color: 'brand', ...defaultBorder },
padding: {
horizontal: '24px',
vertical: '7px' // 8px - 1px for border
}
},
primary: {
background: { color: 'brand' },
border: { color: 'brand', width: '1px' },
border: { color: 'brand', ...defaultBorder },
color: 'white',
padding: {
horizontal: '24px',
vertical: '7px' // 8px - 1px for border
}
},
secondary: {
border: { color: 'brand', width: '1px' },
border: { color: 'brand', ...defaultBorder },
color: 'text',
padding: {
horizontal: '24px',
Expand All @@ -34,17 +32,15 @@ export default {
color: 'text',
secondary: {
background: 'none',
border: {
color: 'brand-contrast'
}
border: { color: 'brand-contrast', ...defaultBorder }
}
},
disabled: {
opacity: 1,
shadow: undefined,
color: 'text-weak',
background: 'black-tint-90',
border: { color: 'black-tint-90' },
border: { color: 'black-tint-90', ...defaultBorder },
primary: { color: 'black-tint-40', background: 'black-tint-70' }
},
hover: {
Expand Down

0 comments on commit 11b2e34

Please sign in to comment.