Closed (fixed)
Project:
Barrio Bootstrap 5 Theme
Version:
5.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Oct 2020 at 12:50 UTC
Updated:
23 Dec 2020 at 08:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexverb commentedPatch provided. See screenshots for results.
Like I said. I'm not sure this is the correct solution since I'm not totally aware how the CSS is built for the custom and switch checkboxes. But this patch does make it functional for tableselect elements.
Comment #3
alexverb commentedRequest review
Comment #4
hatuhay commentedThe solution taken is slighly different from proposed, because I used the Classy template approach.
But for sure the issue is the same as reported.
Comment #7
alexverb commentedThanks hatuhay!
Comment #9
ollie222 commentedWith a standard install of Drupal 8.9.11 with Bootstrap Barrio v5.4.1 or the dev version as the default and admin theme the label is always displayed.
On tableselect tables such as on the content or user page when using a standard checkbox the checkbox is displayed over the top of the label but the checkbox can be ticked.
When using custom or switch for checkboxes on forms I see the label rendered to the right of the tickbox and if I click on it then the line is selected but the checkbox or switch remains unchecked.
Custom and switches work fine elsewhere.
Am I missing something?
Comment #10
mikcat commentedI think that this has to add the css class
visually-hiddento the printed label tag when label_display is set to invisible, like checkboxes on tableselect tables.I'm doing this workaround on my subtheme: