Skip to content

Commit f553aaf

Browse files
committed
fix(ui): fix input no size in old browser
1 parent a76659a commit f553aaf

5 files changed

Lines changed: 10 additions & 0 deletions

File tree

packages/ui/src/styles/components/checkbox.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@
173173
bottom: 0;
174174
left: 0;
175175
z-index: 5;
176+
width: 100%;
177+
height: 100%;
176178
margin: 0;
177179
cursor: inherit;
178180
border: 1px solid var(--#{$rd-prefix}color-border);

packages/ui/src/styles/components/radio.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@
161161
bottom: 0;
162162
left: 0;
163163
z-index: 1;
164+
width: 100%;
165+
height: 100%;
164166
margin: 0;
165167
cursor: inherit;
166168
border: 1px solid var(--#{$rd-prefix}color-border);

packages/ui/src/styles/components/rating.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
bottom: 0;
5454
left: 0;
5555
z-index: 1;
56+
width: 100%;
57+
height: 100%;
5658
margin: 0;
5759
cursor: pointer;
5860
appearance: none;

packages/ui/src/styles/components/slider.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@
162162
right: 0;
163163
bottom: 0;
164164
left: 0;
165+
width: 100%;
166+
height: 100%;
165167
padding: 0;
166168
margin: 0;
167169
overflow: hidden;

packages/ui/src/styles/components/switch.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262
bottom: 0;
6363
left: 0;
6464
z-index: 5;
65+
width: 100%;
66+
height: 100%;
6567
margin: 0;
6668
cursor: pointer;
6769
opacity: 0;

0 commit comments

Comments
 (0)