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