Problem/Motivation

For the photo gallery block, there is css in place which shows the view mode option (grid / masonry) as icons in the form display.

The css for this however relies on the class which uses the option label (added via js in block-layouts.admin.js). This js strips out some stuff (example: optional). When the optional label is translated it doesn't get stripped and the styling doesn't apply.

Steps to reproduce

  • Translate the "optional" string
  • Add a photo gallery block in that language
  • You'll see the view mode options don't have a icon

Photo gallery block missing icons

Proposed resolution

CommentFileSizeAuthor
photo-gallery-missing-layout-icons.png45.76 KBrubendello
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rubendello created an issue. See original summary.

  • a8c9c211 committed on 6.2.x
    feat: #3561192 Photo gallery view mode icon wrongly depends on radio...

  • 73e548dc committed on 6.2.x
    Issue #3561192: Updated photo gallery label selectors
    
l_vandamme’s picture

Status: Active » Fixed

Committed on 6.2.x and released as part of https://www.drupal.org/project/rocketship_core/releases/6.2.4

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

l_vandamme’s picture

Status: Fixed » Closed (fixed)