@scalewing/react 1.59.4 → 1.59.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @scalewing/react
2
2
 
3
+ ## 1.59.5
4
+
5
+ ### Patch Changes
6
+
7
+ - e06c1e2: Forced colours show every choice. The chosen `FilterChips` chip sets `forced-color-adjust: none` on its Highlight face, so Chromium's Canvas backplate no longer hides its HighlightText words, and every `SegmentedControl` variant (plain and filled, not only the icon and raised tracks) outlines its selected item in Highlight. No API change.
8
+
3
9
  ## 1.59.4
4
10
 
5
11
  ### Patch Changes
@@ -135,7 +135,8 @@ ${cssFilterChipsRowClasses()}
135
135
  @media (forced-colors: active) {
136
136
  .sw-filter-chip-face { background: Canvas; border-color: CanvasText; color: CanvasText; }
137
137
  .sw-filter-chips-error { color: Mark; }
138
- .sw-filter-chip-input:checked + .sw-filter-chip-face { background: Highlight; border-color: Highlight; color: HighlightText; }
138
+ /* Chromium paints a Canvas backplate behind text in forced colours; HighlightText on it vanishes. */
139
+ .sw-filter-chip-input:checked + .sw-filter-chip-face { background: Highlight; border-color: Highlight; color: HighlightText; forced-color-adjust: none; }
139
140
  .sw-filter-chip-input:focus-visible + .sw-filter-chip-face { outline-color: Highlight; }
140
141
  .sw-filter-chip-count { color: inherit; }
141
142
  /* After the checked rule, so every chip, the chosen one too, takes the edge. */
@@ -99,6 +99,8 @@ function fieldRules() {
99
99
 
100
100
  @media (forced-colors: active) {
101
101
  .sw-segmented[aria-invalid='true'] { border-color: Mark; }
102
+ /* Every variant's chosen item: its surface or accent fill is dropped. */
103
+ .sw-segmented-item-selected { outline: 2px solid Highlight; }
102
104
  }`;
103
105
  }
104
106
  export function cssSegmentedClasses() {
package/dist/styles.css CHANGED
@@ -1546,6 +1546,8 @@ body {
1546
1546
 
1547
1547
  @media (forced-colors: active) {
1548
1548
  .sw-segmented[aria-invalid='true'] { border-color: Mark; }
1549
+ /* Every variant's chosen item: its surface or accent fill is dropped. */
1550
+ .sw-segmented-item-selected { outline: 2px solid Highlight; }
1549
1551
  }
1550
1552
 
1551
1553
  .sw-segmented {
@@ -8953,7 +8955,8 @@ html:has(.sw-site-header-sticky) {
8953
8955
  @media (forced-colors: active) {
8954
8956
  .sw-filter-chip-face { background: Canvas; border-color: CanvasText; color: CanvasText; }
8955
8957
  .sw-filter-chips-error { color: Mark; }
8956
- .sw-filter-chip-input:checked + .sw-filter-chip-face { background: Highlight; border-color: Highlight; color: HighlightText; }
8958
+ /* Chromium paints a Canvas backplate behind text in forced colours; HighlightText on it vanishes. */
8959
+ .sw-filter-chip-input:checked + .sw-filter-chip-face { background: Highlight; border-color: Highlight; color: HighlightText; forced-color-adjust: none; }
8957
8960
  .sw-filter-chip-input:focus-visible + .sw-filter-chip-face { outline-color: Highlight; }
8958
8961
  .sw-filter-chip-count { color: inherit; }
8959
8962
  /* After the checked rule, so every chip, the chosen one too, takes the edge. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalewing/react",
3
- "version": "1.59.4",
3
+ "version": "1.59.5",
4
4
  "description": "Scalewing DOM components and package-owned CSS utilities.",
5
5
  "type": "module",
6
6
  "license": "MIT",