Responsive stacks
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- css, scss
- Domain
- frontend
Research direction
The bug is in the compiled CSS: the responsive stack selectors are written as .sm\: vstack and .sm\: hstack with a space after the escaped colon, so they match the wrong element. Find the Sass source that generates breakpoint-prefixed stack utilities, the same one that emits sm:mb-11 correctly, and compare how the two are built. Compile the stylesheet and confirm the output contains .sm\:hstack with no space, then check the responsive stacks example in the helpers/stacks docs applies the style.
Written by the indexing model from the issue text.
Description
Prerequisites
- I have searched for duplicate or closed issues
- I have validated any HTML to avoid common problems
- I have read the contributing guidelines
Describe the issue
Is the compiled CSS for responsive stacks correct? I know the example in the docs appears to work, but if you inspect the styles in the debug tools, the sm:hstack style never seems to be applied.
Looking at the generated CSS, I see this:
.vstack {
--bs-stack-direction: column;
--bs-stack-align-items: stretch
}
.hstack {
--bs-stack-direction: row;
--bs-stack-align-items: flex-start
}
@container (width>=576px) {
.sm\: vstack {
--bs-stack-direction:column;
--bs-stack-align-items: stretch
}
.sm\: hstack {
--bs-stack-direction:row;
--bs-stack-align-items: flex-start
}
}
Notice the space after the :, which isn't present in other breakpoint-scoped classes (for example, sm:mb-11):
.sm\:mb-11 {
margin-block-end:2.5rem
}
Reduced test cases
N/A
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Microsoft Edge
What version of Bootstrap are you using?
v6.0.0-alpha.1
- 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
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
refined-github/refined-github#10387 ·
Maintainers usually reply within 1 day
-
area: agents area: browser follow-up
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
manaflow-ai/cmux#39883 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
cleitonme/Whazing-SaaS#542 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100