m3-svelte 4.0.0-beta.3 → 4.0.0
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.
|
@@ -25,7 +25,13 @@
|
|
|
25
25
|
text,
|
|
26
26
|
...extra
|
|
27
27
|
}: {
|
|
28
|
-
color?:
|
|
28
|
+
color?:
|
|
29
|
+
| "primary-container"
|
|
30
|
+
| "secondary-container"
|
|
31
|
+
| "tertiary-container"
|
|
32
|
+
| "primary"
|
|
33
|
+
| "secondary"
|
|
34
|
+
| "tertiary";
|
|
29
35
|
elevation?: "normal" | "lowered" | "none";
|
|
30
36
|
click: () => void;
|
|
31
37
|
} & ContentProps &
|
|
@@ -100,21 +106,26 @@
|
|
|
100
106
|
}
|
|
101
107
|
|
|
102
108
|
.color-primary {
|
|
103
|
-
background-color: rgb(var(--m3-scheme-primary
|
|
104
|
-
color: rgb(var(--m3-scheme-on-primary
|
|
109
|
+
background-color: rgb(var(--m3-scheme-primary));
|
|
110
|
+
color: rgb(var(--m3-scheme-on-primary));
|
|
105
111
|
}
|
|
106
|
-
.color-
|
|
107
|
-
background-color: rgb(var(--m3-scheme-
|
|
108
|
-
color: rgb(var(--m3-scheme-
|
|
112
|
+
.color-secondary {
|
|
113
|
+
background-color: rgb(var(--m3-scheme-secondary));
|
|
114
|
+
color: rgb(var(--m3-scheme-on-secondary));
|
|
109
115
|
}
|
|
110
|
-
.color-
|
|
111
|
-
background-color: rgb(var(--m3-scheme-
|
|
116
|
+
.color-tertiary {
|
|
117
|
+
background-color: rgb(var(--m3-scheme-tertiary));
|
|
118
|
+
color: rgb(var(--m3-scheme-on-tertiary));
|
|
112
119
|
}
|
|
113
|
-
.color-
|
|
120
|
+
.color-primary-container {
|
|
121
|
+
background-color: rgb(var(--m3-scheme-primary-container));
|
|
122
|
+
color: rgb(var(--m3-scheme-on-primary-container));
|
|
123
|
+
}
|
|
124
|
+
.color-secondary-container {
|
|
114
125
|
background-color: rgb(var(--m3-scheme-secondary-container));
|
|
115
126
|
color: rgb(var(--m3-scheme-on-secondary-container));
|
|
116
127
|
}
|
|
117
|
-
.color-tertiary {
|
|
128
|
+
.color-tertiary-container {
|
|
118
129
|
background-color: rgb(var(--m3-scheme-tertiary-container));
|
|
119
130
|
color: rgb(var(--m3-scheme-on-tertiary-container));
|
|
120
131
|
}
|
|
@@ -10,7 +10,7 @@ type ContentProps = {
|
|
|
10
10
|
text?: undefined;
|
|
11
11
|
};
|
|
12
12
|
type $$ComponentProps = {
|
|
13
|
-
color?: "primary" | "
|
|
13
|
+
color?: "primary-container" | "secondary-container" | "tertiary-container" | "primary" | "secondary" | "tertiary";
|
|
14
14
|
elevation?: "normal" | "lowered" | "none";
|
|
15
15
|
click: () => void;
|
|
16
16
|
} & ContentProps & HTMLButtonAttributes;
|
|
@@ -171,11 +171,9 @@
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
&:focus-visible > .tint
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
&:active > .ripple-container.broken + .tint {
|
|
174
|
+
&:is(:global(input:focus-visible + label)) > .tint,
|
|
175
|
+
&:focus-visible > .tint,
|
|
176
|
+
&:active > .tint {
|
|
179
177
|
opacity: 0.12;
|
|
180
178
|
}
|
|
181
179
|
}
|