Skip to content

Commit 671830c

Browse files
committed
Update playground styles for readonly inputs
1 parent 5b34609 commit 671830c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/static/css/docs.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,9 @@ input:focus, textarea:focus, select:focus, .rjf-multiselect-field-input:focus {
474474
}
475475
input:disabled, input[readonly],
476476
textarea:disabled, textarea[readonly],
477-
select:disabled, select[readonly] {
477+
select:disabled, select[readonly],
478+
.rjf-multiselect-field.readonly .rjf-multiselect-field-input,
479+
.rjf-datetime-field-inputs.readonly .rjf-datetime-field-time input[readonly] {
478480
background-color: #f2f2f2;
479481
opacity: 1;
480482
}
@@ -960,7 +962,7 @@ button.rjf-add-button:hover {
960962
.rjf-multiselect-field-input {
961963
cursor: pointer;
962964
padding-right: 28px !important;
963-
background-color: #fff !important;
965+
background-color: #fff;
964966
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23777777' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
965967
background-repeat: no-repeat;
966968
background-position: right 6px center;
@@ -974,6 +976,9 @@ button.rjf-add-button:hover {
974976
border-radius: 4px;
975977
line-height: 1;
976978
}
979+
.rjf-multiselect-field.readonly .rjf-multiselect-field-input-item {
980+
background-color: #e2e2e2;
981+
}
977982
.rjf-multiselect-field-input-item > span {
978983
display: inline-block;
979984
vertical-align: middle;

0 commit comments

Comments
 (0)