Skip to content

Commit

Permalink
🐛 fix: ボタンのデザインを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
takashi0602 committed Dec 28, 2023
1 parent a77b9ef commit 0a2ea9a
Showing 1 changed file with 32 additions and 14 deletions.
46 changes: 32 additions & 14 deletions src/components/base/Button/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,26 @@ const styles = {
button: style([
sprinkles({
display: 'inline-flex',
minWidth: {
mobile: 120,
desktop: 150,
},
height: {
mobile: 40,
desktop: 48,
},
fontSize: {
mobile: 14,
desktop: 16,
},
color: 'white',
backgroundColor: 'blue',
outlineColor: {
focusVisible: 'lightBlue',
color: {
default: 'white',
disabled: 'gray',
},
opacity: {
focusVisible: 0.8,
hover: 0.8,
disabled: 0.3,
disabledHover: 0.3,
backgroundColor: {
default: 'transparent',
hover: 'indigo',
disabledHover: 'transparent',
},
cursor: {
default: 'pointer',
Expand All @@ -29,18 +35,30 @@ const styles = {
mobile: 1.5,
desktop: 2.5,
},
paddingY: {
mobile: 1,
desktop: 1.5,
borderColor: {
default: 'white',
disabled: 'gray',
},
outlineWidth: {
focusVisible: 2,
},
outlineStyle: {
focusVisible: 'solid',
},
outlineColor: {
focusVisible: 'white',
},
outlineOffset: {
focusVisible: -1,
},
}),
{
justifyContent: 'center',
alignItems: 'center',
whiteSpace: 'nowrap',
border: 'none',
borderWidth: 1,
borderStyle: 'solid',
borderRadius: 4,
outline: '2px solid',
},
]),
};
Expand Down

0 comments on commit 0a2ea9a

Please sign in to comment.