Skip to content

Fix/simple accordion tabindex#2271

Merged
boxadesign merged 3 commits intoreworked-testsfrom
fix/simple-accordion-tabindex
Jun 22, 2022
Merged

Fix/simple accordion tabindex#2271
boxadesign merged 3 commits intoreworked-testsfrom
fix/simple-accordion-tabindex

Conversation

@boxadesign
Copy link
Copy Markdown
Contributor

What is the context of this PR?

Fixes #2147

Also adds tests in the collapsible script tests to cover the scenario when the collapsible is and accordion and when the collapsible is an accordion and the simple variant.

How to review

Review code and check tests

@boxadesign boxadesign added the Bug Something isn't working label Jun 21, 2022
@boxadesign boxadesign requested review from jrbarnes9 and kruncher June 21, 2022 10:39
@boxadesign boxadesign self-assigned this Jun 21, 2022
@kruncher kruncher mentioned this pull request Jun 21, 2022
this.collapsibleHeader.setAttribute('aria-controls', collapsibleId);

if (!this.isAccordion) {
if (!this.isAccordion || (this.isAccordion && this.isSimpleAccordion)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be simplified to:

if (!this.isAccordion || this.isSimpleAccordion) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.isAccordion has to be true if it wasn't false.

@boxadesign boxadesign merged commit 6da338f into reworked-tests Jun 22, 2022
@boxadesign boxadesign deleted the fix/simple-accordion-tabindex branch June 22, 2022 11:06
boxadesign added a commit that referenced this pull request Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accordion collapsibles of the simple variant are not in the tab order

3 participants