@adia-ai/web-components 0.8.0 → 0.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adia-ai/web-components",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "AdiaUI web components \u2014 vanilla custom elements. A2UI runtime (renderer, registry, streams, wiring) lives in @adia-ai/a2ui-runtime.",
5
5
  "type": "module",
6
6
  "types": "./index.d.ts",
@@ -139,13 +139,20 @@
139
139
  --a-primary-active: var(--md-sys-color-primary-active);
140
140
  --a-primary-selected: var(--md-sys-color-primary);
141
141
 
142
- /* Link family — Material's static export has no dedicated "link" role,
143
- so this reuses the primary interactive triad directly: link = the
144
- bare accent, link-hover = its hover state, link-visited = its active
145
- state (reads as "already-visited, deeper" without a bespoke ramp). */
146
- --a-link: var(--md-sys-color-primary);
147
- --a-link-hover: var(--md-sys-color-primary-hover);
148
- --a-link-visited: var(--md-sys-color-primary-active);
142
+ /* Link family — fixed 2026-07-15 (contract step 11, `verify:contrast`
143
+ rewrite surfaced a real regression, not a near-miss: bare
144
+ `--md-sys-color-primary` is the vivid CTA/button fill, tuned for a
145
+ large filled surface, not small text on the page background — it
146
+ measured as low as 2.23:1 in light mode, badly failing AA 4.5:1).
147
+ Material ships a role built for exactly this ("colored text on a
148
+ neutral surface"): `-on-surface` + its own `-hover`/`-active` state
149
+ family, already used by `--a-primary-text` below for the identical
150
+ purpose. Re-pointed link to the same family instead of inventing a
151
+ workaround — verified via `verify:contrast`, clears AA in both
152
+ schemes with wide margin (primary-950/-050 are near-black/near-white). */
153
+ --a-link: var(--md-sys-color-primary-on-surface);
154
+ --a-link-hover: var(--md-sys-color-primary-on-surface-hover);
155
+ --a-link-visited: var(--md-sys-color-primary-on-surface-active);
149
156
 
150
157
  /* Primary text on primary solid bg — needs light text on dark-ish primary */
151
158
  --a-primary-text-strong: var(--md-sys-color-primary-on-primary);