@womp/kookie-ui 0.26.0 → 0.26.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.
- package/components.css +10 -2
- package/package.json +1 -1
- package/src/components/_internal/base-button.css +3 -1
- package/src/components/toolbar.css +13 -0
- package/styles.css +10 -2
package/components.css
CHANGED
|
@@ -2967,8 +2967,8 @@
|
|
|
2967
2967
|
}
|
|
2968
2968
|
.kui-BaseButton:where(.kui-variant-soft,.kui-variant-ghost,.kui-variant-outline,.kui-variant-surface):where(:active:not([data-state='open'],[data-disabled],[aria-disabled='true'])) {
|
|
2969
2969
|
background-color: var(--v-bg-active);
|
|
2970
|
-
-webkit-box-shadow:
|
|
2971
|
-
box-shadow:
|
|
2970
|
+
-webkit-box-shadow: none;
|
|
2971
|
+
box-shadow: none;
|
|
2972
2972
|
}
|
|
2973
2973
|
.kui-BaseButton:where(.kui-variant-soft,.kui-variant-ghost,.kui-variant-outline,.kui-variant-surface):where([data-state='on']) {
|
|
2974
2974
|
background-color: var(--v-bg-pressed);
|
|
@@ -14947,6 +14947,14 @@
|
|
|
14947
14947
|
-webkit-margin-end: calc(var(--toolbar-title-gap) - var(--toolbar-gap));
|
|
14948
14948
|
margin-inline-end: calc(var(--toolbar-title-gap) - var(--toolbar-gap));
|
|
14949
14949
|
}
|
|
14950
|
+
@media (forced-colors: active) {
|
|
14951
|
+
.kui-ToolbarGroup {
|
|
14952
|
+
border: 1px solid CanvasText;
|
|
14953
|
+
}
|
|
14954
|
+
.kui-ToolbarGroup > :where(.kui-BaseButton) {
|
|
14955
|
+
border-style: none;
|
|
14956
|
+
}
|
|
14957
|
+
}
|
|
14950
14958
|
.kui-TooltipContent {
|
|
14951
14959
|
-webkit-box-sizing: border-box;
|
|
14952
14960
|
box-sizing: border-box;
|
package/package.json
CHANGED
|
@@ -311,7 +311,9 @@
|
|
|
311
311
|
/* Active state */
|
|
312
312
|
&:where(:active:not([data-state='open'], [data-disabled], [aria-disabled='true'])) {
|
|
313
313
|
background-color: var(--v-bg-active);
|
|
314
|
-
|
|
314
|
+
/* A pressed soft or ghost button darkens its fill and casts nothing. Outline and surface
|
|
315
|
+
keep their edge through their own rules. */
|
|
316
|
+
box-shadow: none;
|
|
315
317
|
}
|
|
316
318
|
|
|
317
319
|
/* Pressed state (toggle on) */
|
|
@@ -168,3 +168,16 @@
|
|
|
168
168
|
:where(.kui-Toolbar) .kui-ToolbarTitle:where(:not(:last-child)) {
|
|
169
169
|
margin-inline-end: calc(var(--toolbar-title-gap) - var(--toolbar-gap));
|
|
170
170
|
}
|
|
171
|
+
|
|
172
|
+
/* High contrast drops the group's fill, so the group takes the outline and its buttons give theirs
|
|
173
|
+
up, the way a segmented control's segments sit inside one border. A border colour is forced in
|
|
174
|
+
this mode, so the buttons drop the style, not the colour. */
|
|
175
|
+
@media (forced-colors: active) {
|
|
176
|
+
.kui-ToolbarGroup {
|
|
177
|
+
border: 1px solid CanvasText;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.kui-ToolbarGroup > :where(.kui-BaseButton) {
|
|
181
|
+
border-style: none;
|
|
182
|
+
}
|
|
183
|
+
}
|
package/styles.css
CHANGED
|
@@ -8098,8 +8098,8 @@
|
|
|
8098
8098
|
}
|
|
8099
8099
|
.kui-BaseButton:where(.kui-variant-soft,.kui-variant-ghost,.kui-variant-outline,.kui-variant-surface):where(:active:not([data-state='open'],[data-disabled],[aria-disabled='true'])) {
|
|
8100
8100
|
background-color: var(--v-bg-active);
|
|
8101
|
-
-webkit-box-shadow:
|
|
8102
|
-
box-shadow:
|
|
8101
|
+
-webkit-box-shadow: none;
|
|
8102
|
+
box-shadow: none;
|
|
8103
8103
|
}
|
|
8104
8104
|
.kui-BaseButton:where(.kui-variant-soft,.kui-variant-ghost,.kui-variant-outline,.kui-variant-surface):where([data-state='on']) {
|
|
8105
8105
|
background-color: var(--v-bg-pressed);
|
|
@@ -20064,6 +20064,14 @@
|
|
|
20064
20064
|
-webkit-margin-end: calc(var(--toolbar-title-gap) - var(--toolbar-gap));
|
|
20065
20065
|
margin-inline-end: calc(var(--toolbar-title-gap) - var(--toolbar-gap));
|
|
20066
20066
|
}
|
|
20067
|
+
@media (forced-colors: active) {
|
|
20068
|
+
.kui-ToolbarGroup {
|
|
20069
|
+
border: 1px solid CanvasText;
|
|
20070
|
+
}
|
|
20071
|
+
.kui-ToolbarGroup > :where(.kui-BaseButton) {
|
|
20072
|
+
border-style: none;
|
|
20073
|
+
}
|
|
20074
|
+
}
|
|
20067
20075
|
.kui-TooltipContent {
|
|
20068
20076
|
-webkit-box-sizing: border-box;
|
|
20069
20077
|
box-sizing: border-box;
|