Repository navigation
Remove table, form text and navbar toggler tokens that no rule reads - #43223
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 28, 2026
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.
Spotted in julien-deramond/bootstrap-test-playground#125
Some token maps declare tokens that no rule reads, so setting them changes nothing. These are leftovers from v6 refactors that moved the value somewhere else, so this removes them. No rendered value changes. The removed tokens are
--table-striped-bg,--table-active-bg,--table-hover-bg,--form-text-margin-top, and the six--navbar-toggler-*tokens for width, padding, font size, border color and border radius, with the dark variant's border color.The table tokens went unread in #41789. The striped, active and hover rules now mix their color on each cell, from
--theme-fgwhen a.theme-*class sets it. A token declared on.tablecan't see a--theme-fgset on a row, so reading these three again would take the tint off themed rows. The*-bg-factortokens are the ones to set.The navbar toggler tokens went unread in #42048, which made the toggler a
.btn-icon. Its size, padding, border and radius now come from the button tokens, and only its transition and icon tokens are read. That PR read--navbar-toggler-widthat first, then commented the line out and deleted it, and the token stayed behind.The form text margin was commented out in #41983, and the migration guide says the parent
.form-fieldgrid gap gives the spacing. The commented-out line goes with the token.The "How do the variants and accented tables work?" section of
tables.mdxnamed the removed table tokens and still described the v5 variants. It now says the variants are the.theme-*classes, quotes the currentbox-shadowwith its--bs-theme-bg-subtlefallback, and names the factor tokens. The commented-outtable-variants-loopexample and the--table-bg-scaleline under "Customizing" are gone, since neither exists in v6.The Sass output loses only those custom property declarations. PostCSS adds the
bs-prefix after this step, sodist/shows the same lines as--bs-…:Three other unread tokens stay.
--check-active-bgand--check-active-border-color, with the--control-active-*root tokens they default to, came in #42113 for a checkbox:activestate that no rule draws yet.--menu-spaceris the gap static menus used before the Floating UI migration, and no rule positions adisplay: 'static'menu now. Both look like something to wire, not to remove.A search of
scss/,js/src/,site/andbuild/found no other use of a removed token.npm run css-lintandnpm run css-testpass. I didn't build the docs.🤖 Generated with Claude Code