Bartik has inconsistent .field__label styling, with unique attributes for .field--type-entity-reference and .field--name-field-tags only

Created on 30 March 2018, over 6 years ago
Updated 22 November 2023, about 1 year ago

Problem

Bartik sets a .field__label class only for .field--type-entity-reference and .field--name-field-tags. Instead it should inherit Classy's styling for those selectors as they are. (Currently on the field label of only these two fields, Bartik overrides the font-weight, lateral padding and font-size).

Steps to reproduce the problem

  1. On a Standard install profile content type (e.g. Article), create an entity reference field.
  2. Preserve the existing body field.
  3. Under Manage display of a Content type, set both field labels to display the same way, either Above or Inline.
  4. Create a node and add one word of content to each field.
  5. View the node and note the field labels display different styling.

Expected behavior

All field label(s) use the same styling.

Proposed fix

Remove all calls to the .field__label class from the Bartik css, allowing Bartik to inherit Classy styling on each field label.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Look and Feel

Created by

🇺🇸United States kay_v

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

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

  • 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