@omni-design/components 0.14.28 → 0.14.29
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/CLAUDE.md +6 -4
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CLAUDE.md
CHANGED
|
@@ -349,11 +349,13 @@ publish the same three styles under two names:
|
|
|
349
349
|
| bold, one step down | `<Typography variant="subtitle-small">` | `--Subtitle-Small-Font-Weight` |
|
|
350
350
|
| bold, one step up | `<SubtitleLarge>` | `--Subtitle-Large-Font-Weight` |
|
|
351
351
|
|
|
352
|
-
|
|
352
|
+
Two things that bite when you make that swap, and one that no longer does:
|
|
353
353
|
|
|
354
|
-
**Subtitle
|
|
355
|
-
for `<Subtitle>` to gain weight also
|
|
356
|
-
|
|
354
|
+
**Subtitle and Body both default to `--Text`.** Subtitle used to default to
|
|
355
|
+
`--Header`, so swapping `<Body>` for `<Subtitle>` to gain weight also changed
|
|
356
|
+
the colour. It no longer does: Subtitle is body-sized, and body-sized text
|
|
357
|
+
needs 4.5:1 — `--Header` only promises the 3:1 that large text gets. Headings
|
|
358
|
+
(h1–h6, display) keep `--Header`.
|
|
357
359
|
|
|
358
360
|
**`variant="body-bold"` is an alias, not a bold.** The `-bold` body keys still
|
|
359
361
|
resolve so old markup doesn't break, but they land on the *semibold* style. If
|