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.

Comments

cr0ss’s picture

StatusFileSize
new469 bytes

An 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?

bserem’s picture

Could you please fill provide a screenshot or give guidance on where to see this behavior / steps to replicate the issue.

Thank you

jdanthinne’s picture

StatusFileSize
new7.13 KB

As 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…
Custom Search block

manjit.singh’s picture

The last submitted patch, 1: no-colon-for-options-labels-1.patch, failed testing.

manjit.singh’s picture

no-colon-for-options-labels.patch queued for re-testing.

The last submitted patch, no-colon-for-options-labels.patch, failed testing.

droplet’s picture

+++ b/core/modules/system/css/system.theme.css
@@ -111,6 +111,7 @@ abbr.form-required, abbr.tabledrag-changed, abbr.ajax-changed {
   content: none;

content:none is invalid value. Please remove it.

Sumit kumar’s picture

droplet’s picture

Issue summary: View changes
Status: Needs review » Needs work
Jalandhar’s picture

Assigned: Unassigned » Jalandhar
Status: Needs work » Needs review
StatusFileSize
new487 bytes

Updating the patch with required changes. Please review it.

Jalandhar’s picture

Assigned: Jalandhar » Unassigned
droplet’s picture

Status: Needs review » Reviewed & tested by the community

  • Commit e601933 on 8.x by alexpott:
    Issue #2086463 by Jalandhar, cr0ss, jdanthinne: No colon needed for...
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed e601933 and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.