Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkbox labels should not be hidden in inline forms #84

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BBoom
Copy link

@BBoom BBoom commented Apr 16, 2024

Q A
Is bugfix? ✔️
New feature?
Breaks BC?
Fixed issues

Note: This is the same issue fixed in yiisoft/yii2-bootstrap4#243 for bootstrap 4.

--
Inline forms by default hide all labels with the sr-only class. This should not happen for checkbox elements, which need their label to function. Without a visible label, the checkbox will not function in bootstrap. And even if it did, a checkbox without a label is not really usable.

The method for class removal is based on similar exceptions made in the listBox() and dropDownList() methods in the same class.

…should not happen for checkbox elements, which need their label to function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant