Skip to content

Commit 5ebb629

Browse files
stefankprezrah
andauthored
Update .changeset/fix-esm-control-color-tokens.md
Co-authored-by: Rez <13340707+rezrah@users.noreply.github.com>
1 parent d48943b commit 5ebb629

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.changeset/fix-esm-control-color-tokens.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
'@primer/react-brand': patch
33
---
44

5-
Fixed missing form-control color tokens in the ESM build. `TextInput`, `Textarea`, `Select`, `Checkbox`, `Radio`, and `FormControl` now bundle the `--brand-control-*` color tokens directly, so their borders and boxes render correctly for consumers that import from `@primer/react-brand/esm` without also loading the global `@primer/react-brand/lib/css/main.css` stylesheet.
6-
7-
Previously these tokens only reached CSS through a shared side-effect import in the forms barrel (`forms/index.ts`), which the ESM build drops. On ESM-only pages this left `var(--brand-control-*)` undefined, collapsing control borders (and rendering checkboxes and radios invisible). This affected the `0.70.0` and `0.71.0` releases; consumers using `@primer/react-brand/esm` should upgrade to this release.
5+
Fixed missing styles for ESM form controls, where the dependent design tokens were missing . Affects `TextInput`, `Textarea`, `Select`, `Checkbox`, `Radio`, and `FormControl`.

0 commit comments

Comments
 (0)