mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(item): only add .item-button class
This commit is contained in:
@@ -92,6 +92,13 @@ export class Button {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
addClass(className) {
|
||||
this._renderer.setElementClass(this._elementRef, className, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
|
||||
@@ -64,7 +64,9 @@ export class Item {
|
||||
|
||||
@ContentChildren(Button)
|
||||
set _buttons(buttons) {
|
||||
Button.setRoles(buttons, 'item-button');
|
||||
buttons.toArray().forEach(button => {
|
||||
button.addClass('item-button');
|
||||
});
|
||||
}
|
||||
|
||||
@ContentChildren(Icon)
|
||||
|
||||
Reference in New Issue
Block a user