File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -816,19 +816,27 @@ select {
816
816
ISSUE(12267): Refine meter, progress, switch and range input styling.
817
817
818
818
```css
819
- input[type=checkbox][switch] {
819
+ input:is( [type=checkbox][switch] , [type=range] ) {
820
820
display: inline-flex;
821
821
position: relative;
822
822
align-items: center;
823
+ width: 100%;
824
+ }
825
+
826
+ input[type=checkbox][switch] {
823
827
width: 2em;
824
828
}
825
829
826
830
::slider-track {
827
831
height: 1em;
832
+ width: 100%;
833
+ }
834
+
835
+ input[type=range] ::slider-track {
836
+ height: 0.5em;
828
837
}
829
838
830
839
input[type=checkbox][switch] ::slider-track {
831
- width: 100%;
832
840
border-radius: 1em;
833
841
}
834
842
@@ -852,12 +860,8 @@ input[type=checkbox][switch]::slider-fill {
852
860
background-color: currentColor;
853
861
appearance: none;
854
862
width: 1em;
855
- height: 100%;
856
- }
857
-
858
- input[type=checkbox][switch] ::slider-thumb {
859
- border-radius: 100%;
860
863
height: 1em;
864
+ border-radius: 100%;
861
865
position: absolute;
862
866
}
863
867
You can’t perform that action at this time.
0 commit comments