Disabled radio toggle button groups lose checked state
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- bootstrap, css, html, scss
- Domain
- accessibility, frontend
Research direction
Start by reproducing the issue with the provided radio group in Bootstrap v6.0.0.alpha.1, then inspect the button group and form-check styles that control checked and disabled radio states. Verify the expected behavior in Chrome: the checked option should remain visually distinguishable when every radio is disabled.
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
When all radio buttons in a radio group are disabled, the selected button (with the checked attribute) loses its checked state. As a result, all buttons appear visually identical, making it impossible to distinguish the selected option from the others.
<div class="btn-group" role="group">
<label class="btn-check btn-outline theme-secondary">
<input type="radio" name="platform" value="wechat" autocomplete="off" tabindex="-1" disabled checked>
<i class="bi bi-wechat"></i>
</label>
<label class="btn-check btn-outline theme-secondary">
<input type="radio" name="platform" value="alipay" autocomplete="off" tabindex="-1" disabled>
<i class="bi bi-alipay"></i>
</label>
</div>
Reduced test cases
A minimal reproduction can be created using a radio button group where all radio buttons have the disabled attribute and one of them has the checked attribute.
The expected behavior is that the checked state should remain visually distinguishable even when all radio buttons are disabled.
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
v6.0.0.alpha.1
- Dominant language
- MDX
- Stars
- 175k
- Forks
- 78.7k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 94
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
-
css docs feature v6
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
`.visually-hidden` class uses the deprecated `clip` CSS propertyPossibly taken @Aryan9891 claimed this today. Openaccessibility css has-pr refactoring v6
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
twbs/bootstrap#43333 · 1 reaction ·
Maintainers usually reply within 1 day
-
Select input form caret wrong position on RTL modePossibly taken @adityajai119 claimed this 1 day ago. Openbug confirmed css has-pr v6
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
twbs/bootstrap#43327 · 3 comments ·
Maintainers usually reply within 1 day
-
v6: OTP input keeps the rest of a selection when you type over itPossibly taken @thejesh23 claimed this 3 days 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 3 days 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
Similar issues
-
文字サイズ最大で服薬タブの日付の見出しとカレンダータブの月の見出しが切れるPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bannzai/medicalarm#572 ·
Maintainers usually reply within 1 day
-
a11y
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
italia/bootstrap-italia#2001 ·
Maintainers usually reply within 4 days
-
in triage
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openfootmanager/openfootmanager#1365 ·
Maintainers usually reply within 1 day