fix: rename @layer xds-reset to @layer reset - #833
Merged
Conversation
The reset CSS layer was named 'xds-reset' but the layer order declarations in storybook and example-vite use 'reset'. This mismatch meant the xds-reset layer wasn't recognized in the declared order and got implicitly ordered after the priority layers — giving reset styles higher precedence than component styles. Renaming to 'reset' matches the existing @layer declarations and ensures the reset layer sits at the bottom of the cascade as intended. Co-authored-by: Navi <navi@navibot.dev>
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: 18 accessibility violation(s) found — 1 critical, 15 serious, 2 moderate. XDSBanner - 1 issue(s)
XDSCalendar - 1 issue(s)
XDSCheckboxInput - 1 issue(s)
XDSCodeBlock - 2 issue(s)
XDSCodeEditor - 3 issue(s)
XDSHeading - 1 issue(s)
XDSIcon - 1 issue(s)
XDSLayout - 1 issue(s)
XDSList - 1 issue(s)
XDSPagination - 1 issue(s)
XDSSideNav - 1 issue(s)
XDSTabList - 1 issue(s)
Selection - 1 issue(s)
XDSText - 1 issue(s)
XDSToken - 1 issue(s)
Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
No CSS actually uses @layer typography — it was a leftover from an earlier design. Remove it from the layer order declarations in storybook, example-vite, and docs. Co-authored-by: Navi <navi@navibot.dev>
eendeego
approved these changes
Mar 23, 2026
cixzhang
added a commit
that referenced
this pull request
Apr 26, 2026
* fix: rename @layer xds-reset to @layer reset The reset CSS layer was named 'xds-reset' but the layer order declarations in storybook and example-vite use 'reset'. This mismatch meant the xds-reset layer wasn't recognized in the declared order and got implicitly ordered after the priority layers — giving reset styles higher precedence than component styles. Renaming to 'reset' matches the existing @layer declarations and ensures the reset layer sits at the bottom of the cascade as intended. Co-authored-by: Navi <navi@users.noreply.github.com> * fix: remove unused typography layer from layer order declarations No CSS actually uses @layer typography — it was a leftover from an earlier design. Remove it from the layer order declarations in storybook, example-vite, and docs. Co-authored-by: Navi <navi@users.noreply.github.com> --------- Co-authored-by: Navi <navi@users.noreply.github.com>
cixzhang
added a commit
that referenced
this pull request
Jun 21, 2026
* fix: rename @layer xds-reset to @layer reset The reset CSS layer was named 'xds-reset' but the layer order declarations in storybook and example-vite use 'reset'. This mismatch meant the xds-reset layer wasn't recognized in the declared order and got implicitly ordered after the priority layers — giving reset styles higher precedence than component styles. Renaming to 'reset' matches the existing @layer declarations and ensures the reset layer sits at the bottom of the cascade as intended. Co-authored-by: Navi <navi@users.noreply.github.com> * fix: remove unused typography layer from layer order declarations No CSS actually uses @layer typography — it was a leftover from an earlier design. Remove it from the layer order declarations in storybook, example-vite, and docs. Co-authored-by: Navi <navi@users.noreply.github.com> --------- Co-authored-by: Navi <navi@users.noreply.github.com>
cixzhang
added a commit
that referenced
this pull request
Jun 21, 2026
* fix: rename @layer xds-reset to @layer reset The reset CSS layer was named 'xds-reset' but the layer order declarations in storybook and example-vite use 'reset'. This mismatch meant the xds-reset layer wasn't recognized in the declared order and got implicitly ordered after the priority layers — giving reset styles higher precedence than component styles. Renaming to 'reset' matches the existing @layer declarations and ensures the reset layer sits at the bottom of the cascade as intended. * fix: remove unused typography layer from layer order declarations No CSS actually uses @layer typography — it was a leftover from an earlier design. Remove it from the layer order declarations in storybook, example-vite, and docs. ---------
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In Storybook, the reset CSS layer was taking precedence over StyleX priority layers. The reset layer was named
xds-resetinreset.css, but the layer order declarations in storybook and example-vite declarereset:Since
xds-resetdidn't match any name in the declared order, it got implicitly ordered after all declared layers — giving reset styles higher precedence than component styles. That's backwards.Fix
Rename
@layer xds-reset→@layer resetinpackages/core/src/reset.cssso it matches the existing layer order declarations. Updated all comments referencing the old name.Changes
packages/core/src/reset.css— rename layer + update commentsapps/sandbox/src/app/layout.tsx— update comment