Skip to content

Commit 4ee827e

Browse files
committed
🚐
1 parent af3ff29 commit 4ee827e

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.changeset/dark-ravens-join.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sl-design-system/button': patch
3+
---
4+
5+
Fix text color of disabled buttons with a variant

packages/components/button/src/button.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,20 +206,20 @@
206206
pointer-events: none;
207207
}
208208

209-
:host(:where([disabled], [aria-disabled='true'])) {
209+
:host(:is([disabled], [aria-disabled='true'])) {
210210
color: var(--sl-color-foreground-disabled);
211211
cursor: default;
212212
}
213213

214-
:host(:where([disabled], [aria-disabled='true']):where(:not([fill]), [fill='solid'])) {
214+
:host(:is([disabled], [aria-disabled='true']):where(:not([fill]), [fill='solid'])) {
215215
background: var(--sl-color-background-disabled);
216216
}
217217

218-
:host(:where([disabled], [aria-disabled='true']):where([fill='ghost'], [fill='link'], [fill='outline'])) {
218+
:host(:is([disabled], [aria-disabled='true']):where([fill='ghost'], [fill='link'], [fill='outline'])) {
219219
background: transparent;
220220
}
221221

222-
:host(:where([disabled], [aria-disabled='true'])[fill='outline']) {
222+
:host(:is([disabled], [aria-disabled='true'])[fill='outline']) {
223223
border-color: var(--sl-color-border-disabled);
224224
}
225225

0 commit comments

Comments
 (0)