Skip to content

Commit

Permalink
Clean up :focus treatment of menu buttons. #20
Browse files Browse the repository at this point in the history
  • Loading branch information
lederer committed Jan 11, 2018
1 parent 3c2ee76 commit 121e69e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/sass/02_tools/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
padding: 0;
vertical-align: middle;
white-space: normal;
border-radius: 0;
background: none;
line-height: 1;
appearance: none;
Expand Down
5 changes: 5 additions & 0 deletions src/sass/06_components/_additional-actions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,18 @@
display: block;
align-self: stretch;
width: $pwdub-app-switcher-gutter;
outline: 0;
cursor: pointer;

> .icon {
width: 24px;
height: 18px;
}

&:focus > .icon {
outline: rgba($pwdub-v-lt-gray, .6) dotted 1px;
}

&:hover {
background-color: $pwdub-action-hover-background-color;
}
Expand Down
5 changes: 5 additions & 0 deletions src/sass/06_components/_app-switcher.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
width: $pwdub-app-switcher-gutter;
margin-right: 8px;
cursor: pointer;
outline: 0;
z-index: 11;

> .icon {
Expand All @@ -36,6 +37,10 @@
}
}

&:focus > .icon {
outline: rgba($pwdub-v-lt-gray, .6) dotted 1px;
}

&:hover {
background-color: $pwdub-action-hover-background-color;
}
Expand Down

0 comments on commit 121e69e

Please sign in to comment.