Decide whether `$spacers` needs a 2px step
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Read the spacing audit in #42907 and inspect the listed variables and properties in scss/, especially _menu.scss, _nav.scss, _root.scss, content/_reboot.scss, and forms/. Compare the three proposed approaches, including the effect on spacing utility classes. Done means choosing and documenting a consistent treatment for 2px spacing and aligning the validation feedback value.
Written by the indexing model from the issue text.
Description
The spacing audit in #42907 found that almost every spacing value in v6's scss/ that isn't on the $spacers scale is 2px (.125rem). The scale has no such step: it goes from 0 straight to 1 (.25rem, 4px). We should decide whether 2px becomes a step or stays a literal.
Where 2px-ish values are hardcoded on main today:
.125remas a component variable:--menu-gap,--menu-spacerand--menu-divider-margin-y(_menu.scss),--nav-gap(_nav.scss),--btn-input-xs-padding-y(_root.scss),--kbd-padding-y(content/_reboot.scss),--check-margin-block,--radio-margin-blockand--switch-margin-block(forms/)..125remor-.125remas a property: the datepicker (margin-inline,padding-top,padding-bottom), twomargin-topin_menu.scss, one informs/_form-range.scss..1rem:margin-topinforms/_validation.scss, probably meant to be 2px too.2pxin atransform:translateY(-2px)in_avatar.scss,translate3d(2px, 0, 0)in a keyframe inutilities/_api.scss. These are visual nudges, not spacing, and can stay as they are.
The options:
- Add a 2px step. The keys are
0to12, so it needs a key between0and1(like0.5orpx), or a renumbering, which would change every spacing utility class while v6 is in alpha. The variables above would then read from the scale, and every spacing utility would get a 2px class unless the utility API leaves the step out. - Keep 2px out of the scale, but name it once (for example
$spacer-hairline: $spacer * .125), and use that variable in the places above. No new utilities. - Leave it as it is. The values are intentional and few; the audit is only a count.
Either way, the .1rem in the validation feedback should probably move to the same value as the others.
🤖 Generated with Claude Code
- Dominant language
- MDX
- Stars
- 175k
- Forks
- 78.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 103
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from twbs/bootstrap
-
Select input form caret wrong position on RTL modePossibly taken A pull request linked to this issue is open or already merged. Openbug confirmed css v6
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
twbs/bootstrap#43327 · 1 comment ·
Maintainers usually reply within 1 day
-
v6: OTP input keeps the rest of a selection when you type over itPossibly taken @thejesh23 claimed this 1 day ago. Openbug confirmed has-pr js v6
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
twbs/bootstrap#43323 · 2 comments ·
Maintainers usually reply within 1 day
-
v6: Strength ignores common symbols as special charactersPossibly taken @thejesh23 claimed this 1 day ago. Openbug confirmed docs has-pr js v6
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
twbs/bootstrap#43322 · 1 comment ·
Maintainers usually reply within 1 day
-
v6 alpha - hover-lift effect on menu dropdown only works when mouse is over the buttonPossibly taken @Aryan9891 claimed this 5 days ago. Openbug confirmed css has-pr v6
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
Dialog closes when a file input inside it has its picker cancelledPossibly taken @samyferhat claimed this 5 days ago. Openbug confirmed has-pr js v6
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
twbs/bootstrap#43278 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
refined-github/refined-github#10387 ·
Maintainers usually reply within 1 day
-
bug priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
storytold/photocraft#12706 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement parity-check
Difficulty 2/5 Half a day Newbie friendliness 61/100
IBM/carbon-components-ember#1350 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
lichess-org/lila#22454 ·
Maintainers usually reply within 1 day