Skip to content

Commit

Permalink
fix(styles): Add default styles for disabled input elements
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux authored and skjnldsv committed Feb 21, 2024
1 parent fdf4234 commit ce9f39e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 12 additions & 0 deletions core/css/inputs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ input, textarea, select, button, div[contenteditable=true], div[contenteditable=
}

$default-height: 36px;
$opacity-disabled: .7;

/* Simple selector to allow easy overriding */
select,
Expand All @@ -49,6 +50,17 @@ div[contenteditable=false] {
* color-text-maxcontrast disabled state
*/

button:not(.button-vue),
input:not([type='range']),
textarea {
&:disabled {
cursor: default;
color: var(--color-text-maxcontrast);
border-color: var(--color-border-dark);
opacity: $opacity-disabled;
}
}

input:not([type="range"]) {
outline: none;
}
Expand Down
1 change: 0 additions & 1 deletion core/css/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,3 @@ $header-menu-profile-item-height: 66px;

// mobile. Keep in sync with core/js/js.js
$breakpoint-mobile: 1024px;

0 comments on commit ce9f39e

Please sign in to comment.