<div hlmAccordion>
@for (baseRoute of routes;) {
<div hlmAccordionItem>
<button hlmAccordionTrigger>
{{ baseRoute.label }}
<hlm-icon hlmAccIcon />
</button>
<brn-accordion-content hlm>
@for (child of baseRoute.children;){
<button>When should I be focused on by the keyboard?</button>
}
</brn-accordion-content>
</div>
}
</div>
Which area/package is the issue in?
accordion
Description
I might be wrong here but with most of the ARIA-compliant accordions I have worked with, the accordion content is not keyboard-focusable if the accordion is closed. However, that is not the case with spartan. It should be doable with tabindex, or aria-hidden but I would have to research this more before submitting a PR.
Please provide the exception or error you saw
No response
Other information
No response
I would be willing to submit a PR to fix this issue
Please provide the environment you discovered this bug in.
Which area/package is the issue in?
accordion
Description
I might be wrong here but with most of the ARIA-compliant accordions I have worked with, the accordion content is not keyboard-focusable if the accordion is closed. However, that is not the case with spartan. It should be doable with tabindex, or aria-hidden but I would have to research this more before submitting a PR.
Please provide the exception or error you saw
No response
Other information
No response
I would be willing to submit a PR to fix this issue