mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
tabs aria hidden
This commit is contained in:
@ -22,6 +22,7 @@ import {NavBase} from '../nav/nav-base';
|
||||
hostProperties: {
|
||||
'contentId': 'attr.id',
|
||||
'labeledBy': 'attr.aria-labelledby',
|
||||
'ariaHidden': 'attr.aria-hidden',
|
||||
'isSelected': 'class.show-tab'
|
||||
},
|
||||
hostAttributes: {
|
||||
@ -57,6 +58,7 @@ export class Tab {
|
||||
|
||||
select(isSelected) {
|
||||
this.isSelected = isSelected;
|
||||
this.ariaHidden = !isSelected;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user