Skip to content

Commit 2549d6f

Browse files
lukewarlownt1m
authored andcommitted
[css-forms-1] Add input buttons to selectors for buttons
1 parent 458c41d commit 2549d6f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

css-forms-1/Overview.bs

+4-4
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ input[type=radio]:checked::checkmark {
702702
button,
703703
::file-selector-button,
704704
select,
705-
input[type="color"] {
705+
input:is([type="color"], [type="button"], [type="reset"], [type="submit"]) {
706706
border: 1px solid currentColor;
707707
background-color: transparent;
708708
color: inherit;
@@ -733,15 +733,15 @@ input[type="color"] {
733733

734734
user-select: none;
735735
}
736-
:is(button, select, input[type="color"]):enabled:hover,
736+
:is(button, select, input:is([type="color"], [type="button"], [type="reset"], [type="submit"])):enabled:hover,
737737
:enabled::file-selector-button:hover {
738738
background-color: color-mix(in lab, currentColor 10%, transparent);
739739
}
740-
:is(button, select, input[type="color"]):enabled:active,
740+
:is(button, select, input:is([type="color"], [type="button"], [type="reset"], [type="submit"])):enabled:active,
741741
:enabled::file-selector-button:active {
742742
background-color: color-mix(in lab, currentColor 20%, transparent);
743743
}
744-
:is(button, select, input[type="color"]):disabled,
744+
:is(button, select, input:is([type="color"], [type="button"], [type="reset"], [type="submit"])):disabled,
745745
:disabled::file-selector-button {
746746
color: color-mix(in srgb, currentColor 50%, transparent);
747747
}

0 commit comments

Comments
 (0)