@vokality/design-system 5.1.1 → 5.1.2

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
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to `@vokality/design-system`. The package follows [semantic versioning](https://semver.org); see CONTRIBUTING.md for what counts as breaking.
4
4
 
5
+ ## 5.1.2 — 2026-10-20
6
+
7
+ ### Fixed
8
+ - A `Field`'s `optional` text is readable in dialogs, drawers and popovers in the dark theme. It used `muted-subtle`, 4.23:1 on a dark dialog; on those surfaces it now uses `muted-foreground`, as the hint does.
9
+ - Stories: the `Dialog` form has an optional field, so every theme's axe run covers it.
10
+
5
11
  ## 5.1.1 — 2026-10-20
6
12
 
7
13
  ### Fixed
@@ -552,7 +552,7 @@ body {
552
552
  .vk-field-optional { font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--muted-subtle); }
553
553
  .vk-field-hint { font-size: var(--text-sm); line-height: 1.5; color: var(--muted-subtle); }
554
554
  /* muted-subtle reaches AA only on background and card; raised surfaces use the stronger muted ink. */
555
- :is(.vk-dialog, .vk-drawer, .vk-popover) .vk-field-hint { color: var(--muted-foreground); }
555
+ :is(.vk-dialog, .vk-drawer, .vk-popover) :is(.vk-field-hint, .vk-field-optional) { color: var(--muted-foreground); }
556
556
  .vk-input:disabled { cursor: not-allowed; color: var(--muted-subtle); background: transparent; border-style: dashed; }
557
557
  /* Only real fields: :read-only also matches every non-editable element, such as the select trigger. */
558
558
  input.vk-input:read-only, textarea.vk-input:read-only { background: transparent; }
package/dist/vokality.css CHANGED
@@ -896,7 +896,7 @@ body {
896
896
  .vk-field-optional { font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--muted-subtle); }
897
897
  .vk-field-hint { font-size: var(--text-sm); line-height: 1.5; color: var(--muted-subtle); }
898
898
  /* muted-subtle reaches AA only on background and card; raised surfaces use the stronger muted ink. */
899
- :is(.vk-dialog, .vk-drawer, .vk-popover) .vk-field-hint { color: var(--muted-foreground); }
899
+ :is(.vk-dialog, .vk-drawer, .vk-popover) :is(.vk-field-hint, .vk-field-optional) { color: var(--muted-foreground); }
900
900
  .vk-input:disabled { cursor: not-allowed; color: var(--muted-subtle); background: transparent; border-style: dashed; }
901
901
  /* Only real fields: :read-only also matches every non-editable element, such as the select trigger. */
902
902
  input.vk-input:read-only, textarea.vk-input:read-only { background: transparent; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vokality/design-system",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "description": "Vokality's design system: tokens, themes and React components for every Vokality project.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,