m3-svelte 4.5.0 → 4.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import type { Snippet } from "svelte";
|
|
8
8
|
import Layer from "../misc/Layer.svelte";
|
|
9
9
|
|
|
10
|
-
// If you want a toggle button, use `for` with
|
|
10
|
+
// If you want a toggle button, use `for` with a checkbox input.
|
|
11
11
|
type ActionProps =
|
|
12
12
|
| ({ click?: () => void; disabled?: boolean } & HTMLButtonAttributes)
|
|
13
13
|
| ({ href: string } & HTMLAnchorAttributes)
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
&.filled:not(:disabled, :global(input:disabled) + label) {
|
|
132
132
|
background-color: rgb(var(--m3-scheme-primary));
|
|
133
133
|
color: rgb(var(--m3-scheme-on-primary));
|
|
134
|
-
&:is(:global(input:not(:checked)) + label) {
|
|
134
|
+
&:is(:global(input:is([type="checkbox"], [type="radio"]):not(:checked)) + label) {
|
|
135
135
|
background-color: rgb(var(--m3-scheme-surface-container));
|
|
136
136
|
color: rgb(var(--m3-scheme-on-surface-variant));
|
|
137
137
|
}
|