Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dialog heading aria label #11524

Merged
merged 3 commits into from
Feb 3, 2022
Merged

Conversation

bramkragten
Copy link
Member

Proposed change

Fixes the issue with dialog headers described here by @steverep : #10754 (comment)

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

zsarnett
zsarnett previously approved these changes Feb 3, 2022
@bramkragten bramkragten enabled auto-merge (squash) February 3, 2022 14:51
@bramkragten bramkragten merged commit 0540bae into dev Feb 3, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix-dialog-headings-aria-label branch February 3, 2022 14:54
bramkragten added a commit that referenced this pull request Feb 3, 2022
* Only upload wheels to PyPI (#11514)

* Make sure we load data in update card (#11516)

* Guard load diagnostics (#11518)

* Design home - Fix GitHub Links (#11519)

* Add filtering to system log card and error log card (#11166)

Co-authored-by: Bram Kragten <[email protected]>

* Handle unknown toggle state (#11522)

* Fix dialog heading aria label (#11524)

Co-authored-by: Zack Barett <[email protected]>

* Use css to hide hint in quickbar (#11527)

* Revert "Mobile click accessibility" (#11526)

* Clear old src when disconnected so we can't fetch it with the wrong t… (#11528)

* Add name of integration to diagnostics when more than 1 (#11523)

* Bumped version to 20220203.0

Co-authored-by: Marc Mueller <[email protected]>
Co-authored-by: Joakim Sørensen <[email protected]>
Co-authored-by: Paulus Schoutsen <[email protected]>
Co-authored-by: fpro1212 <[email protected]>
Co-authored-by: Kuba Wolanin <[email protected]>
Co-authored-by: Zack Barett <[email protected]>
@steverep
Copy link
Member

steverep commented Feb 4, 2022

You missed 5 files that don't use the heading attribute at all, and probably should. Do a regex search for:

<ha-dialog\n?(\s*\.?@?\w(?!(eading)).*\n?)*\s*>

I normally suck at regex so I'm quite proud of that one 🪄 .

@github-actions github-actions bot locked and limited conversation to collaborators Feb 5, 2022
@bramkragten
Copy link
Member Author

bramkragten commented Feb 7, 2022

You missed 5 files that don't use the heading attribute at all, and probably should. Do a regex search for:

<ha-dialog\n?(\s*\.?@?\w(?!(eading)).*\n?)*\s*>

I normally suck at regex so I'm quite proud of that one 🪄 .

I wish we could just set the heading as aria-label and not display it, if we would add heading for those dialogs it would actually change how it renders (with a header) while that is not what we want.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants