Inline form element colons are incompatible with localization

Created on 10 May 2017, over 7 years ago
Updated 21 May 2024, 7 months ago

Problem/Motivation

Followup to #2236789: Styling of inline radios broken: inappropriate trailing colons (breaks EditorImageDialog) :

.container-inline label:after,
.container-inline .label:after {
  content: ':';
}

The above code adds a colon after form item labels. These colons are incompatible with Drupal's localization. For example, in French this would need to be ' : ' instead of ':'; in Hindi, this might need to be localized to :-.

Proposed resolution

Possibly remove the hardcoded colon from CSS and use PHP to add the colons instead, so it can be localized properly.

Remaining tasks

  1. Decide on a solution
  2. Write a patch
  3. Review
  4. Commit

User interface changes

To be determined.

API changes

To be determined.

Data model changes

To be determined.

🐛 Bug report
Status

Closed: duplicate

Version

11.0 🔥

Component
UI text 

Last updated 5 days ago

No maintainer
Created by

🇳🇱Netherlands idebr

Live updates comments and jobs are added and updated live.
  • CSS

    It involves the content or handling of Cascading Style Sheets.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024