Skip to content

Commit

Permalink
Merge pull request #24 from prismapro/feature/change-disabled-color-i…
Browse files Browse the repository at this point in the history
…n-buttons

Feature/change disabled color in buttons
  • Loading branch information
osvaldokalvaitir authored Jul 6, 2023
2 parents 4291d17 + 17b455a commit d2927ca
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @skedle.me-ui/react

## 2.1.7

### Patch Changes

- Change color when disabled in buttons and icon buttons

## 2.1.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skedle.me-ui/react",
"version": "2.1.6",
"version": "2.1.7",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
12 changes: 6 additions & 6 deletions packages/react/src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const Button = styled('button', {
},

'&:disabled': {
backgroundColor: '$gray200',
backgroundColor: '$gray500',
},
},

Expand All @@ -45,13 +45,13 @@ export const Button = styled('button', {
border: '2px solid $yellow500',

'&:not(:disabled):hover': {
background: '$yellow500',
color: '$gray600',
background: '$yellow500',
},

'&:disabled': {
color: '$gray200',
borderColor: '$gray200',
color: '$gray500',
borderColor: '$gray500',
},
},

Expand All @@ -77,8 +77,8 @@ export const Button = styled('button', {
},

'&:disabled': {
color: '$gray200',
borderColor: '$gray200',
color: '$gray500',
borderColor: '$gray500',
},
},
},
Expand Down
16 changes: 8 additions & 8 deletions packages/react/src/components/IconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const IconButton = styled('button', {
},

'&:disabled': {
backgroundColor: '$gray200',
backgroundColor: '$gray500',
},
},

Expand All @@ -44,13 +44,13 @@ export const IconButton = styled('button', {
border: '2px solid $yellow500',

'&:not(:disabled):hover': {
background: '$yellow500',
color: '$gray600',
background: '$yellow500',
},

'&:disabled': {
color: '$gray200',
borderColor: '$gray200',
color: '$gray500',
borderColor: '$gray500',
},
},

Expand All @@ -62,7 +62,7 @@ export const IconButton = styled('button', {
},

'&:disabled': {
color: '$gray200',
color: '$gray500',
},
},

Expand All @@ -74,7 +74,7 @@ export const IconButton = styled('button', {
},

'&:disabled': {
color: '$gray200',
color: '$gray500',
},
},

Expand All @@ -86,7 +86,7 @@ export const IconButton = styled('button', {
},

'&:disabled': {
color: '$gray200',
color: '$gray500',
},
},

Expand All @@ -98,7 +98,7 @@ export const IconButton = styled('button', {
},

'&:disabled': {
color: '$gray200',
color: '$gray500',
},
},
},
Expand Down

0 comments on commit d2927ca

Please sign in to comment.