mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
fix(all): hostData() attributes
This commit is contained in:
@ -165,11 +165,9 @@ export class Menu {
|
||||
|
||||
hostData() {
|
||||
return {
|
||||
attrs: {
|
||||
'role': 'navigation',
|
||||
'side': this.getSide(),
|
||||
'type': this.type
|
||||
},
|
||||
'role': 'navigation',
|
||||
'side': this.getSide(),
|
||||
'type': this.type,
|
||||
class: {
|
||||
'menu-enabled': this._canOpen()
|
||||
}
|
||||
|
@ -169,11 +169,9 @@ export class RadioGroup {
|
||||
|
||||
hostData() {
|
||||
return {
|
||||
attrs: {
|
||||
'role': 'radiogroup',
|
||||
'aria-activedescendant': this.activeId,
|
||||
'aria-describedby': this.headerId
|
||||
}
|
||||
'role': 'radiogroup',
|
||||
'aria-activedescendant': this.activeId,
|
||||
'aria-describedby': this.headerId
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -45,15 +45,13 @@ export class RangeKnob {
|
||||
style: {
|
||||
'left': this.leftPos(this.ratio)
|
||||
},
|
||||
attrs: {
|
||||
'role': 'slider',
|
||||
'tabindex': this.disabled ? -1 : 0,
|
||||
'aria-valuemin': this.min,
|
||||
'aria-valuemax': this.max,
|
||||
'aria-disabled': this.disabled,
|
||||
'aria-labelledby': this.labelId,
|
||||
'aria-valuenow': this.val
|
||||
}
|
||||
'role': 'slider',
|
||||
'tabindex': this.disabled ? -1 : 0,
|
||||
'aria-valuemin': this.min,
|
||||
'aria-valuemax': this.max,
|
||||
'aria-disabled': this.disabled,
|
||||
'aria-labelledby': this.labelId,
|
||||
'aria-valuenow': this.val
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -23,9 +23,7 @@ export class TabBar {
|
||||
|
||||
hostData() {
|
||||
return {
|
||||
attrs: {
|
||||
'role': 'tablist'
|
||||
},
|
||||
'role': 'tablist'
|
||||
class: {
|
||||
'tabbar': true
|
||||
}
|
||||
|
@ -33,9 +33,7 @@ export class TabButton {
|
||||
// class.tab-hidden
|
||||
|
||||
return {
|
||||
attrs: {
|
||||
'aria-selected': this.selectedIndex === this.index
|
||||
},
|
||||
'aria-selected': this.selectedIndex === this.index,
|
||||
class: {
|
||||
'has-title': hasTitle,
|
||||
'has-icon': hasIcon,
|
||||
|
@ -74,13 +74,7 @@ export class Tab {
|
||||
style: {
|
||||
display: !this.isSelected && 'none' || ''
|
||||
},
|
||||
attrs: {
|
||||
'role': 'tabpanel'
|
||||
// 'id': _tabId,
|
||||
// aria-labelledby: _btnId
|
||||
},
|
||||
class: {
|
||||
}
|
||||
'role': 'tabpanel'
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user