Skip to content

Commit

Permalink
fix(block): add accessible label for slotted controls (#9502)
Browse files Browse the repository at this point in the history
**Related Issue:** #8037

## Summary

- Add aria-labelledby to internal control container for enhanced
accessibility.

---------

Co-authored-by: Kitty Hurley <khurley@esri.com>
  • Loading branch information
driskull and geospatialem committed Jun 6, 2024
1 parent 12407eb commit a9054d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/calcite-components/src/components/block/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export class Block
headerContent
)}
{hasControl ? (
<div class={CSS.controlContainer}>
<div aria-labelledby={IDS.header} class={CSS.controlContainer}>
<slot name={SLOTS.control} />
</div>
) : null}
Expand Down

0 comments on commit a9054d5

Please sign in to comment.