Skip to content

Commit bf1d0be

Browse files
author
Kristofor Salmin
committed
Remove tabindex ruleset
`tabindex=-1` CSS ruleset has been removed in order to support visual feedback on programmatically focused elements.
1 parent cb4e234 commit bf1d0be

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
### HEAD
22

33
* Update normalize.css to `^8.0.0`.
4+
* Remove `tabindex=-1` ruleset.
45

56
### 4.0.0 (September 25th, 2017)
67

lib/base.css

-10
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,3 @@ ul {
7171
margin: 0;
7272
padding: 0;
7373
}
74-
75-
/**
76-
* Suppress the focus outline on elements that cannot be accessed via keyboard.
77-
* This prevents an unwanted focus outline from appearing around elements that
78-
* might still respond to pointer events.
79-
*/
80-
81-
[tabindex="-1"]:focus {
82-
outline: none !important;
83-
}

test/index.html

-12
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@
2020
#iframe iframe {
2121
background-clip: content-box;
2222
}
23-
24-
#tabindex a:focus,
25-
#tabindex button:focus {
26-
outline: 5px solid red;
27-
}
2823
</style>
2924

3025
<div class="Test">
@@ -135,13 +130,6 @@ <h3 class="Test-it">has no border, margin, or padding</h3>
135130
<iframe class="dev-highlight"></iframe>
136131
</div>
137132

138-
<h2 class="Test-describe">[tabindex="-1"]:focus</h2>
139-
<h3 class="Test-it">has no focus outline (try clicking to trigger focus)</h3>
140-
<div class="Test-run" id="tabindex">
141-
<a class="dev-highlight" href="#n" tabindex="-1">example link</a>
142-
<button class="dev-highlight" tabindex="-1">example button</button>
143-
</div>
144-
145133
<h2 class="Test-describe">border-box</h2>
146134
<h3 class="Test-it">padding should not add to the element width (elements should be centred)</h3>
147135
<div class="Test-run" style="width: 80%; margin: 0 auto">

0 commit comments

Comments
 (0)