@finstack-com-public/design 0.10.3 → 0.11.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.
@@ -173,6 +173,8 @@ export function contrastPairs() {
173
173
  // The edge of a control with no fill and no label keeps the 3:1 floor (D38 "how to apply").
174
174
  for (const bg of ['bg-surface', 'bg-chrome', 'bg-page'])
175
175
  role('non-text', 'line-control-strong', bg);
176
+ // The off switch: its knob and edge on its sunken track (switch.css, T131).
177
+ role('non-text', 'line-control-strong', 'bg-sunken');
176
178
  role('non-text', 'ring', 'ring-halo');
177
179
  role('non-text', 'accent', 'bg-surface');
178
180
  // The checked checkbox and radio mark on its accent fill (checkbox.css, I21).
@@ -199,6 +201,8 @@ export function contrastPairs() {
199
201
  role('disabled', 'ink-disabled', 'bg-surface');
200
202
  // A disabled checked box: the mark on the box's disabled fill (checkbox.css).
201
203
  role('disabled', 'bg-surface', 'ink-disabled');
204
+ // A disabled checked switch: the knob on the track's disabled fill (switch.css, T131).
205
+ role('disabled', 'bg-disabled', 'ink-disabled');
202
206
  }
203
207
  return out;
204
208
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finstack-com-public/design",
3
- "version": "0.10.3",
3
+ "version": "0.11.0",
4
4
  "description": "Design kit: tokens, icons, components and a chart theme, shared by Grizzbi, BI App and the calculation engine.",
5
5
  "license": "MIT",
6
6
  "author": "Finstack",