Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
Only disable outline when box-shadow is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Oct 19, 2016
1 parent 9256736 commit be05c63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion demo/demo.css
Expand Up @@ -67,12 +67,16 @@ label {
}
/* Focus style */
.custom-select select:focus {
outline: none;
/* It'd be nice to use -webkit-focus-ring-color here but it doesn't work on box-shadow */
box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
box-shadow: 0 0 0 3px -moz-mac-focusring;
color: #222; /* Match-02 */
}
@supports ( box-shadow: none ) {
.custom-select select:focus {
outline: none;
}
}

/* Set options to normal weight */
.custom-select option {
Expand Down

0 comments on commit be05c63

Please sign in to comment.