Skip to content

Commit

Permalink
Merge pull request #18 from adidas/bugfix/button-focus-state
Browse files Browse the repository at this point in the history
Fix button style on focus state
  • Loading branch information
moelders authored Mar 28, 2019
2 parents fcdaae2 + a1524de commit 769589b
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 1.5.5

- Fixed button style on focus state.

### [ buttons ]

- Added `.focus` class and `:focus` pseudo-class to button generator with default button values.

## 1.5.4

- Fixed breadcrumb margin between items.
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adidas/yarn-design-system",
"version": "1.5.4",
"version": "1.5.5",
"description": "adidas YARN Design System: toolkit for developing with HTML and CSS",
"repository": {
"type": "git",
Expand Down
22 changes: 21 additions & 1 deletion src/less/mixins/buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,24 @@
color: @active-color;
box-shadow: @shadow-outset;
cursor: default;

&:hover {
@media @pointer-query {
background-color: @background-color;
}
}
}

&:focus,
&.focus {
background-color: @background-color;
color: @color;

&:hover {
@media @pointer-query {
background-color: @background-color;
}
}
}

&:hover {
Expand Down Expand Up @@ -57,7 +75,9 @@ when (@background-color = transparent) {

.disable-button-box-shadow() {
&:active,
&.active {
&.active,
&:focus,
&.focus {
box-shadow: none;
}

Expand Down

0 comments on commit 769589b

Please sign in to comment.