Skip to content

Commit acaeb27

Browse files
author
edwardxiao
committed
- Add cursor: not-allowed to disabled elements
1 parent e2e8e39 commit acaeb27

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

src/js/Inputs/react-inputs-validation.css

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ select {
4343
/*outline: 0;*/
4444
}
4545

46+
.textbox__wrapper.disabled,
47+
.textbox__wrapper.disabled div {
48+
cursor: not-allowed;
49+
}
50+
4651
.textbox__wrapper {
4752
height: auto;
4853
}
@@ -134,6 +139,11 @@ input[type='text'].textbox__input.disabled {
134139
/*outline: 0;*/
135140
}
136141

142+
.textarea__wrapper.disabled,
143+
.textarea__wrapper.disabled div {
144+
cursor: not-allowed;
145+
}
146+
137147
.textarea__wrapper {
138148
height: auto;
139149
}
@@ -183,6 +193,12 @@ textarea.textarea__input.disabled {
183193
/*outline: 0;*/
184194
}
185195

196+
.radiobox__wrapper.disabled,
197+
.radiobox__wrapper.disabled label,
198+
.radiobox__wrapper.disabled div {
199+
cursor: not-allowed;
200+
}
201+
186202
input[type='radio'] {
187203
position: absolute;
188204
opacity: 0;
@@ -257,6 +273,11 @@ input[type='checkbox'] {
257273
/*outline: none;*/
258274
}
259275

276+
.checkbox__wrapper.disabled,
277+
.checkbox__wrapper.disabled div {
278+
cursor: not-allowed;
279+
}
280+
260281
.checkbox__input {
261282
display: none;
262283
}
@@ -339,6 +360,11 @@ input[type='checkbox'] {
339360
outline-style: solid;
340361
}*/
341362

363+
.select__wrapper.disabled,
364+
.select__wrapper.disabled div {
365+
cursor: not-allowed;
366+
}
367+
342368
.select__wrapper {
343369
cursor: pointer;
344370
/*outline: none;*/
@@ -499,7 +525,7 @@ input[type='checkbox'] {
499525

500526
.select__dropdown-icon.showArrow:before {
501527
content: '';
502-
/* position: absolute;
528+
/* position: absolute;
503529
top: 50%;
504530
transform: translateY(-50%);*/
505531
border-style: solid;

0 commit comments

Comments
 (0)