Skip to content

Commit 09673bf

Browse files
committed
pure-css#42 fix for checkbox, file, and radio input focus
Added styles for checkbox, file, and radio input focus as they were not affected by borders.
1 parent a194d15 commit 09673bf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/forms/css/forms.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
outline: thin dotted \9; /* IE6-9 */
2424
border-color: #129FEA;
2525
}
26+
.pure-form input[type="file"]:focus,
27+
.pure-form input[type="radio"]:focus,
28+
.pure-form input[type="checkbox"]:focus {
29+
outline: thin dotted #333;
30+
outline: 1px auto #129FEA;
31+
}
2632
.pure-form .pure-checkbox,
2733
.pure-form .pure-radio {
2834
margin: 0.5em 0;
@@ -50,6 +56,11 @@
5056
.pure-form select:focus:invalid:focus {
5157
border-color: #e9322d;
5258
}
59+
.pure-form input[type="file"]:focus:invalid:focus,
60+
.pure-form input[type="radio"]:focus:invalid:focus,
61+
.pure-form input[type="checkbox"]:focus:invalid:focus {
62+
outline-color: #e9322d;
63+
}
5364
.pure-form select {
5465
border: 1px solid #ccc;
5566
background-color: white;

0 commit comments

Comments
 (0)