From c92222dcae6bf641fc7da4fb568b0bb640ceb7e4 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Fri, 12 Jul 2024 11:07:32 +0100 Subject: [PATCH] LibWeb: Add styling for disabled button elements --- Userland/Libraries/LibWeb/CSS/Default.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Userland/Libraries/LibWeb/CSS/Default.css b/Userland/Libraries/LibWeb/CSS/Default.css index 6a7e95c837e..6ece888bfe0 100644 --- a/Userland/Libraries/LibWeb/CSS/Default.css +++ b/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 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; }