fix(web): name the chat settings trigger - #40199
Closed
lyzno1 wants to merge 1 commit into
Closed
Conversation
Give the embedded chat settings icon button its existing localized action name, keep its icon decorative with valid button content, and replace the test id locator with role, name, and expanded-state assertions.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #40199 +/- ##
==========================================
- Coverage 86.41% 86.41% -0.01%
==========================================
Files 5107 5107
Lines 290731 290732 +1
Branches 57917 57917
==========================================
- Hits 251245 251243 -2
- Misses 34545 34548 +3
Partials 4941 4941
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Aug 9, 2026
Member
Author
|
Superseded by #40341, which owns the same ViewFormDropdown trigger contract, adds the accessible name and semantic tests in one reviewable layer, and now also preserves valid inline content. The former dependent layers have been rebased away, so this branch is no longer a prerequisite. |
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.
Summary
Give the embedded chat settings icon button an accessible name and migrate its test away from
data-testid.This is the bottom PR in the Chat accessibility stack and targets
main.Behavioral contract
aria-expanded.Scope
data-testidremoved after the semantic locator became available.b250d73cbd.HTML validity
The icon wrapper changes from
divtospan, keeping the button content within the phrasing-content model. The icon utility supplies the same inline-block geometry and all size/color classes are unchanged.Non-goals
data-testidpolicy or deletion.Suppression status
No suppression is changed because this missing-name case is not currently covered by the repository jsx-a11y baseline rules. The targeted standalone a11y lint is clean, while the semantic test supplies the missing regression gate.
Verification
pnpm --dir web exec vitest run app/components/base/chat/embedded-chatbot/inputs-form/__tests__/view-form-dropdown.spec.tsxpnpm --dir web lint:a11y app/components/base/chat/embedded-chatbot/inputs-form/view-form-dropdown.tsxvp check --fix <two changed files>git diff --checkVisual regression review
aria-labelandaria-hiddendo not affect layout or paint.Reviewer check: this PR should have no visual CSS delta.
Rollback
Revert
b250d73cbd; the production semantics and semantic locator roll back together.From Codex