Skip to content

Commit f84b5e3

Browse files
authored
Merge pull request #3603 from AlchemyCMS/fix-button-disabled-styles
fix: Disabled button styles
2 parents eba4542 + 4ea33d0 commit f84b5e3

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

app/assets/builds/alchemy/admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/stylesheets/alchemy/_mixins.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
&.disabled,
7070
&[disabled] {
7171
background-color: var(--button-disabled-bg-color);
72-
border-color: var(--button-border-color);
72+
border-color: var(--button-disabled-border-color);
7373
cursor: not-allowed;
7474
box-shadow: none;
7575
outline: none;

app/stylesheets/alchemy/admin/shoelace.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ sl-button {
317317
transition-property: background-color, border-color, color, fill;
318318
transition-duration: var(--sl-transition-medium);
319319
}
320+
&[disabled]::part(base) {
321+
border-color: var(--button-disabled-border-color);
322+
}
320323
}
321324

322325
sl-dialog {

0 commit comments

Comments
 (0)