Skip to content

Dialog headline title #45429

@bembelimen

Description

@bembelimen

Steps to reproduce the issue

  1. Open any dialog (e.g. during the installation changing the language or the batch modal in com_content backend)
  2. Inspect the dialog/headline with your browser developer tool

Expected result

  • Dialog has aria-labelledby="xxx" pointing to the headline of the dialog

Actual result

  • No pointers to the headline

Additional comments

Issue was mentioned by @exlemor and confirmed by @brianteeman in this PR, so probably you have an idea how to solve this?

Current status is: Dialogs are generated in this file as web component. Specific in line 188 the dialog element is created. I think the attributes has to be added when there is a header in line 206.
Now here is the challenge: the headline needs an ID, which is not that easy, especially if there are more than one dialog at the page. Do we need to remember how many times a dialog is created?

Any idea?

//cc @Fedik as you know the dialog I guess :-)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions