Skip to content

Commit 1e4b924

Browse files
mdoXhmikosR
andauthored
Revert "use :read-only css selector instead [readonly] for consistency (#33642)" (#33961)
This reverts commit 17252bb. Co-authored-by: XhmikosR <[email protected]>
1 parent 7ed4894 commit 1e4b924

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scss/forms/_form-control.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
&[type="file"] {
2626
overflow: hidden; // prevent pseudo element button overlap
2727

28-
&:not(:disabled):not(:read-only) {
28+
&:not(:disabled):not([readonly]) {
2929
cursor: pointer;
3030
}
3131
}
@@ -65,7 +65,7 @@
6565
// disabled if the fieldset is disabled. Due to implementation difficulty, we
6666
// don't honor that edge case; we style them as disabled anyway.
6767
&:disabled,
68-
&:read-only {
68+
&[readonly] {
6969
background-color: $input-disabled-bg;
7070
border-color: $input-disabled-border-color;
7171
// iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
@@ -88,7 +88,7 @@
8888
@include transition($btn-transition);
8989
}
9090

91-
&:hover:not(:disabled):not(:read-only)::file-selector-button {
91+
&:hover:not(:disabled):not([readonly])::file-selector-button {
9292
background-color: $form-file-button-hover-bg;
9393
}
9494

@@ -107,7 +107,7 @@
107107
@include transition($btn-transition);
108108
}
109109

110-
&:hover:not(:disabled):not(:read-only)::-webkit-file-upload-button {
110+
&:hover:not(:disabled):not([readonly])::-webkit-file-upload-button {
111111
background-color: $form-file-button-hover-bg;
112112
}
113113
}
@@ -203,7 +203,7 @@ textarea {
203203
height: auto; // Override fixed browser height
204204
padding: $input-padding-y;
205205

206-
&:not(:disabled):not(:read-only) {
206+
&:not(:disabled):not([readonly]) {
207207
cursor: pointer;
208208
}
209209

0 commit comments

Comments
 (0)