Skip to content

Commit 0b1662d

Browse files
mAAdhaTTahRunDevelopment
authored andcommitted
Toolbar: Set opacity to 1 when focus is within (#1927)
This ensures interacting with the toolbar with the keyboard makes it visible to the user.
1 parent 7988019 commit 0b1662d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugins/toolbar/prism-toolbar.css

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ div.code-toolbar:hover > .toolbar {
1414
opacity: 1;
1515
}
1616

17+
/* Separate line b/c rules are thrown out if selector is invalid.
18+
IE11 and old Edge versions don't support :focus-within. */
19+
div.code-toolbar:focus-within > .toolbar {
20+
opacity: 1;
21+
}
22+
1723
div.code-toolbar > .toolbar .toolbar-item {
1824
display: inline-block;
1925
}

0 commit comments

Comments
 (0)