The following CSS rule adds colon to every label, but this is not needed if the label is an option (radio labels i.e.).
.container-inline label:after {
content: ':';
}Attached patch solves this.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | drupal8-no_colon_needed_for_options_labels-2086463-11.patch | 487 bytes | Jalandhar |
Comments
Comment #1
cr0ss commentedAn interesting situation could happen trying to use CSS2 - that simply could not work out. What do you think about adding content: ""; as a fallback for CSS2?
Comment #2
bserem commentedCould you please fill provide a screenshot or give guidance on where to see this behavior / steps to replicate the issue.
Thank you
Comment #3
jdanthinne commentedAs an example, I'm currently converting my Custom Search module for D8, and when I add content types selector to the search box as radio buttons, you can see the colons…

Comment #4
manjit.singh1: no-colon-for-options-labels-1.patch queued for re-testing.
Comment #6
manjit.singhno-colon-for-options-labels.patch queued for re-testing.
Comment #8
droplet commentedcontent:none is invalid value. Please remove it.
Comment #9
Sumit kumar commented1: no-colon-for-options-labels-1.patch queued for re-testing.
Comment #10
droplet commentedComment #11
Jalandhar commentedUpdating the patch with required changes. Please review it.
Comment #12
Jalandhar commentedComment #13
droplet commentedComment #15
alexpottCommitted e601933 and pushed to 8.x. Thanks!