-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
AccessibilityThis issue is related to accessibility (a11y)This issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/tabsdesignThis issue needs design work before implementingThis issue needs design work before implementingneed a11y consultTeam needs to consult with an accessibility expert before proceedingTeam needs to consult with an accessibility expert before proceeding
Description
Reproduction
Without router-outlet directive
The mat-tab-nav-bar
directive not activate tabs with Enter&Space by default (like in 'real' tabs).
Official example (without router-outlet).
Steps to reproduce:
- Focus on unselected tab (with arrow keys) and press Enter or Space
- The selected tab not activated and the route page isn't display.
With router-outlet directive
The mat-tab-nav-bar
directive with routerLink (like shown here) activate selected tabs with Enter but not with Space.
Custom example (with router-outlet).
Steps to reproduce:
- Focus on unselected tab and press Enter.
- The selected tab activated.
- Focus on unselected tab and press Space.
- The selected tab not activated and the route page isn't display.
Expected Behavior
Select tabs with Enter or Space keys will activate the selected tab.
There is also a function call that should handle it. here is the call and here is the function.
Actual Behavior
When tab selected by Space the route not activated.
Environment
- Angular: 9
- CDK/Material: 9.2.4
Metadata
Metadata
Assignees
Labels
AccessibilityThis issue is related to accessibility (a11y)This issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/tabsdesignThis issue needs design work before implementingThis issue needs design work before implementingneed a11y consultTeam needs to consult with an accessibility expert before proceedingTeam needs to consult with an accessibility expert before proceeding