Skip to content

[5.x]: Nested element chip title turns white on card focus/select #15044

@mmikkel

Description

@mmikkel

What happened?

Description

If an element chip is displayed in a card that sits inside an inline-editable Matrix field (phew!), the title/link color for the chip turns white on a light gray background when the card is selected, which looks like a bug and makes the chip title pretty much unreadable:

CleanShot.2024-05-22.at.00.05.00.mp4

Steps to reproduce

  1. Create a Matrix field with the "As inline-editable blocks" view mode.
  2. Create an Entries field using the "Cards" view mode
  3. Add an entry type to the field that includes the Entries field. Check the "Show in element cards" field layout setting for the Entries field.
  4. Create a nested Matrix entry and add an entry to the Entries field. Then, click the card to select it.

Expected behavior

Actual behavior

Craft CMS version

5.1.4

PHP version

No response

Operating system and version

macOS 14.3.1, MS Edge 124.0.2478.80

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions