diff --git a/.changeset/big-glasses-drum.md b/.changeset/big-glasses-drum.md new file mode 100644 index 0000000000..2a7e2bdcf3 --- /dev/null +++ b/.changeset/big-glasses-drum.md @@ -0,0 +1,5 @@ +--- +"@rhds/elements": patch +--- + +``: corrected focus when keyboard navigating options menu diff --git a/elements/rh-audio-player/rh-audio-player.ts b/elements/rh-audio-player/rh-audio-player.ts index 21e0dae273..0e6089b0af 100644 --- a/elements/rh-audio-player/rh-audio-player.ts +++ b/elements/rh-audio-player/rh-audio-player.ts @@ -1072,6 +1072,7 @@ export class RhAudioPlayer extends LitElement { async #onMenuKeydown(event: KeyboardEvent) { if (event.key === 'Escape') { await this.#hideMenu(); + this.shadowRoot?.querySelector('#menu-button')?.focus(); } }