Skip to content

Commit

Permalink
Merge pull request #238 from dhis2/fix-toggled-button-disabled-style
Browse files Browse the repository at this point in the history
fix(button): toggled button disabled style
  • Loading branch information
Birkbjo authored Aug 13, 2020
2 parents d35af16 + f2542a1 commit 3cdeb20
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
23 changes: 23 additions & 0 deletions packages/core/src/Button/Button.stories.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 13 additions & 3 deletions packages/core/src/Button/Button.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ export default css`
.toggled {
background: ${colors.grey700};
border: 1px solid ${colors.grey900};
color: ${colors.white};
fill: ${colors.white};
color: ${colors.grey050};
fill: ${colors.grey050};
}
.toggled:focus {
Expand All @@ -256,6 +256,7 @@ export default css`
.toggled:hover {
background: ${colors.grey800};
border-color: ${colors.grey900};
}
.toggled:focus::after {
Expand All @@ -264,6 +265,15 @@ export default css`
.toggled:active,
.toggled:active:focus {
background: ${colors.grey800};
background: ${colors.grey900};
border-color: ${colors.grey900};
}
.toggled:disabled {
background: ${colors.grey500};
border-color: ${colors.grey600};
color: ${colors.grey050};
fill: ${colors.grey050};
opacity: 1;
}
`

0 comments on commit 3cdeb20

Please sign in to comment.