Repository navigation
Add navbar_toggle_label to the shell and close_label to the alert - #1640
Open
mkerz-masfg wants to merge 14 commits into
Open
mkerz-masfg wants to merge 14 commits into
mkerz-masfg wants to merge 14 commits into
Conversation
Both menu toggle buttons had the fixed accessible name "Toggle navigation". The new optional property replaces it; the default stays the same.
The close button of a dismissible alert had the fixed accessible name "Close". close_label replaces it, as on the modal component; the default stays the same.
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The menu toggle buttons of the shell and the close button of a dismissible alert had fixed English accessible names ("Toggle navigation", "Close"). Two optional properties replace them, with the current text as default, so existing pages don't change:
shell:navbar_toggle_label, used for both menu toggle buttons;alert:close_label, the same name as on themodalcomponent.Added both documentation rows, a CHANGELOG entry and two rendering tests in tests/sql_test_files/component_rendering/ that put "It works !" into the new property: they fail on v0.48.0 and pass with the change (checked with the official v0.48.0 binary and the templates of current main).
If you'd like, I can add the same
close_labelto thetoastclose button, in this PR or a follow-up.Fixes #1632