Repository navigation
fix: add default aria-label to popover button and fix double-hyphen bug - #785
Open
tom-ridsdale wants to merge 2 commits into
Open
tom-ridsdale wants to merge 2 commits into
tom-ridsdale wants to merge 2 commits into
Conversation
robespmun
previously approved these changes
Oct 8, 2026
This commit addresses two accessibility issues in the web embed popover: 1. Added a default aria-label="Open form" to the popover button for better accessibility. Users can still override this via buttonProps. 2. Fixed a bug in camelCaseToKebabCase where non-alphabetic characters (like hyphens) were being treated as uppercase letters, causing attributes like "aria-label" to become "aria--label" with double hyphens. The fix now only adds hyphens before actual uppercase letters (A-Z). Related: KI-419, TU-48845
tom-ridsdale
force-pushed
the
blocksmith-auto-anvil/popover-aria-label-fix
branch
from
October 9, 2026 14:51
20d6bb2 to
b78d90b
Compare
tom-ridsdale
force-pushed
the
blocksmith-auto-anvil/popover-aria-label-fix
branch
from
October 9, 2026 15:17
b78d90b to
9c872e3
Compare
Collaborator
|
[BOT] Preview available with hash |
tom-ridsdale
marked this pull request as ready for review
October 9, 2026 15:40
✅ Security Analysis ResultsNo security issues found. 8 files reviewed.
|
This branch has not been deployed
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.
Description
This PR addresses two accessibility issues reported in KI-419 and TU-48845 for the classic web embed popover.
aria-label="Open form"for better accessibility. Customers can still override it if needed. Note that it is a hard-coded English string because translation keys don't fit this package. The embed SDK has no i18n layer at all: no locale option, no translation files, no dependency. Other hardcoded English strings do already exist, e.g.create-popup.ts,create-slider.ts,create-widget.ts: closeButton.ariaLabel = 'Close'`create-popover.tsandcreate-sidetab.ts: img alt='popover trigger icon button'Also took the chance to update
addAttributesToElementwhich now skips props whose value isnullorundefined, so{ ariaLabel: undefined }no longer setsaria-label="undefined". The helper is shared, so this also applies toiframeand thesidetab.Related
Testing
Using the hash from this PR
aria-labelset to default value "Open Form" andaria-expanded="false"✅aria-expanded="true"after opening the form ✅-
aria-expanded="false"after closing again ✅aria-labelset to configured value andaria-expanded="false"✅