Skip to content

Commit 2e5aa34

Browse files
committed
fix focus to use default focus to leave the browser's default focus sufficiently contrasted on all interactive elements
1 parent e47a307 commit 2e5aa34

File tree

5 files changed

+1
-36
lines changed

5 files changed

+1
-36
lines changed

src/scss/02-tools/_m-select-custom.scss

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,4 @@
5252
&:hover {
5353
border-color: color.adjust($color-grey-500, $lightness: -10%);
5454
}
55-
56-
// Focus style
57-
&:focus {
58-
color: color.adjust($color-text, $lightness: -10%);
59-
border-color: color.adjust($color-grey-500, $lightness: -20%);
60-
outline: none;
61-
box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
62-
box-shadow: 0 0 0 3px -moz-mac-focusring;
63-
64-
option {
65-
outline: none;
66-
}
67-
}
6855
}

src/scss/04-utilities/_focus.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ html {
66
textarea,
77
[tabindex] {
88
&:focus-visible {
9-
outline: 2px solid currentColor;
10-
outline-offset: .5rem;
9+
outline-offset: .2rem;
1110
}
1211
}
1312
}

src/scss/04-utilities/_seo.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
%focus-seo-container {
2-
&:has(:focus-visible) {
3-
outline: 2px solid currentColor;
4-
outline-offset: .5rem;
5-
}
6-
7-
*:focus {
8-
outline: none;
9-
}
10-
}
11-
121
%seo-container {
13-
@extend %focus-seo-container;
142
position: relative;
153
z-index: 1;
164
cursor: pointer;

src/scss/05-components/_skip-links.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
font-size: 13px;
2323
color: $color-text;
2424
text-decoration: none;
25-
26-
&:focus {
27-
outline-offset: 3px;
28-
}
2925
}
3026

3127
&:focus-within {

src/scss/06-blocks/core/_audio.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,5 @@
55
&::-webkit-media-controls-panel {
66
background-color: $color-primary;
77
}
8-
9-
&:focus {
10-
outline: 2px solid $color-primary;
11-
outline-offset: 5px;
12-
}
138
}
149
}

0 commit comments

Comments
 (0)