Description togglers target same description

Created on 18 February 2024, 4 months ago
Updated 4 March 2024, 4 months ago

Problem/Motivation

Having an entity reference field as inline entity form (simple or complex) with both forms, the parent and the inline form, having there fields with description will make the togglers target only one of the descriptions

Steps to reproduce

1- Create a paragraph type.
2- Add a entity reference revision field targeting the paragraph type in any content type.
3- Add to the paragraph type a media field targeting image media type with help text.
4- Make sure the image media type has an image field with help text.
5- Set the media field to be inline entity form (complex or simple).
6- Add content and notice the help texts togglers in the paragraph field, if you click on any of them the closest help text to the toggler will appear whatever toggler you click on.

Proposed resolution

Make use of the aria-labelledby attribute to differentiate between each toggler and its description.

Remaining tasks

Review/Commit

User interface changes

Visual bug is fixed.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇯🇴Jordan Odai Jbr

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024