Skip to content

Commit 44d4800

Browse files
committed
css for disabled controls (new old ui)
1 parent 4780c9c commit 44d4800

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

dojo/static/dojo/css/dojo.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1894,4 +1894,14 @@ input[type=number]::-webkit-outer-spin-button {
18941894
color: ButtonText;
18951895
}
18961896
}
1897-
1897+
1898+
/* Disabled form-field styling — @tailwindcss/forms resets the browser default
1899+
disabled appearance for <select>/<input>/<textarea> without replacing it,
1900+
so server-side `disabled=True` fields end up looking editable. */
1901+
select:disabled,
1902+
input:disabled,
1903+
textarea:disabled {
1904+
opacity: 0.6;
1905+
cursor: not-allowed;
1906+
background-color: #f5f5f5;
1907+
}

0 commit comments

Comments
 (0)