Skip to content

Commit

Permalink
fix: fix a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
aeksandla committed Feb 16, 2024
1 parent 34613bc commit 6f38333
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ export const CustomSwitcher = ({
const hasCounter = itemsNames.length > 1;

return (
<div
className={b('custom-switcher')}
ref={controlRef as LegacyRef<HTMLDivElement>}
onKeyDown={onKeyDown}
aria-expanded={open}
>
<button onClick={onClick} className={b('custom-switcher-element', {overlay: true})} />
<div className={b('custom-switcher')} ref={controlRef as LegacyRef<HTMLDivElement>}>
<button
onClick={onClick}
className={b('custom-switcher-element', {overlay: true})}
onKeyDown={onKeyDown}
aria-expanded={open}
/>
<div className={b('custom-switcher-element', {content: true})}>
{itemsNames?.join(', ')}
</div>
Expand Down

0 comments on commit 6f38333

Please sign in to comment.