-
Notifications
You must be signed in to change notification settings - Fork 7
Dropdown accessibility improvement #1109
Conversation
🦋 Changeset detectedLatest commit: bdccd49 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
d834796
to
54e37b1
Compare
await page.getByRole('combobox').fill('add'); | ||
await page.getByRole('combobox').focus(); | ||
|
||
await expect(page.locator('glide-core-dropdown')).toMatchAriaSnapshot(` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"required" doesn't show up in the accessibility tree. But it is announced by VoiceOver.
54e37b1
to
bdccd49
Compare
.locator('glide-core-dropdown') | ||
.evaluate<void, Dropdown>((element) => { | ||
element.multiple = true; | ||
element.multiple = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the 'select-all'
test inside the 'multiple=${false}'
describe block. So multiple
should be false
.
- tooltip "Tooltip" | ||
- text: Label | ||
- button "Label" | ||
`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wish Playwright would indent these right.
🚀 Description
📋 Checklist
🔬 Manual Testing
You know what to do!