Browse Source

LibWeb: Add styling for disabled button elements

Tim Ledbetter 1 year ago
parent
commit
c92222dcae
1 changed files with 9 additions and 0 deletions
  1. 9 0
      Userland/Libraries/LibWeb/CSS/Default.css

+ 9 - 0
Userland/Libraries/LibWeb/CSS/Default.css

@@ -52,6 +52,15 @@ button, input[type=submit], input[type=button], input[type=reset], select {
     cursor: default;
 }
 
+button:disabled, input[type=submit]:disabled, input[type=button]:disabled, input[type=reset]:disabled, select:disabled {
+    /* FIXME: There isn't a <system-color> keyword for this, so this is a slightly lightened
+     *        version of our light ButtonFace color. Once we support `color-scheme: dark`
+     *        we'll need to use a different color for that.
+     */
+    background-color: #e5e0d7;
+    color: GrayText;
+}
+
 input[type=image] {
     cursor: pointer;
 }