Skip to content

Commit

Permalink
LibWeb: Add styling for disabled button elements
Browse files Browse the repository at this point in the history
  • Loading branch information
tcl3 committed Jul 12, 2024
1 parent 0592e94 commit 149eff2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Userland/Libraries/LibWeb/CSS/Default.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 149eff2

Please sign in to comment.