@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 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: var(--shadow-1);
2971
- box-shadow: var(--shadow-1);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@womp/kookie-ui",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
4
4
  "description": "Kookie UI v1: a React component library with design tokens, flexible theming, a full layout shell, and comprehensive documentation.",
5
5
  "keywords": [
6
6
  "react",
@@ -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
- box-shadow: var(--shadow-1);
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: var(--shadow-1);
8102
- box-shadow: var(--shadow-1);
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;