Skip to content

Commit

Permalink
fix(tabs-extended): add vertical arrow key support (#8243)
Browse files Browse the repository at this point in the history
### Related Ticket(s)

{{Provide url(s) to the related ticket(s) that this pull request addresses}}

fixes #7719

{{Add a human-readable description / detail summary of what the PR is changing and any details around how and why}}

Adds arrow-up and arrow-down navigation to the tabs-extended component

### Changelog

**Changed**

- Adds arrow-up and arrow-down navigation to the tabs-extended component
  • Loading branch information
andy-blum authored Feb 11, 2022
1 parent 0a0c5ea commit 0b17c94
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ class DDSTabsExtended extends StableSelectorMixin(LitElement) {
this._setActiveItem(this._getNextTab(activeTab));
}
break;
case 'ArrowUp':
this._setActiveItem(this._getPrevTab(activeTab));
break;
case 'ArrowDown':
this._setActiveItem(this._getNextTab(activeTab));
break;
case 'Home':
this._setActiveItem(this._getNextTab(-1));
break;
Expand Down

0 comments on commit 0b17c94

Please sign in to comment.