mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(): update to Stencil One 🎉🎊
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { Component, ComponentInterface } from '@stencil/core';
|
||||
|
||||
import { Mode } from '../../interface';
|
||||
import { getIonMode } from '../../global/ionic-global';
|
||||
|
||||
@Component({
|
||||
tag: 'ion-item-group',
|
||||
@ -11,16 +11,15 @@ import { Mode } from '../../interface';
|
||||
})
|
||||
export class ItemGroup implements ComponentInterface {
|
||||
|
||||
mode!: Mode;
|
||||
|
||||
hostData() {
|
||||
const mode = getIonMode(this);
|
||||
return {
|
||||
'role': 'group',
|
||||
class: {
|
||||
[`${this.mode}`]: true,
|
||||
[`${mode}`]: true,
|
||||
|
||||
// Used internally for styling
|
||||
[`item-group-${this.mode}`]: true,
|
||||
[`item-group-${mode}`]: true,
|
||||
|
||||
'item': true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user