Skip to content

Add navbar_toggle_label to the shell and close_label to the alert - #1640

Open
mkerz-masfg wants to merge 14 commits into
sqlpage:mainfrom
mkerz-masfg:a11y-labels
Open

mkerz-masfg wants to merge 14 commits into
sqlpage:mainfrom
mkerz-masfg:a11y-labels

Conversation

@mkerz-masfg

Copy link
Copy Markdown
Contributor

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 the modal component.

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_label to the toast close button, in this PR or a follow-up.

Fixes #1632

@datadog-official

datadog-official Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Pipelines

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 0f35750 | Docs | Give us feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Customizable accessible names for the shell menu toggle and the alert close button

1 participant