mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
fix(item): pass down user's class list
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { Component, Element, Listen, Prop, State } from '@stencil/core';
|
||||
import { createThemedClasses } from '../../utils/theme';
|
||||
import { createThemedClasses, getElementClassMap } from '../../utils/theme';
|
||||
import { CssClassMap } from '../../index';
|
||||
|
||||
|
||||
@ -94,6 +94,7 @@ export class Item {
|
||||
const themedClasses = {
|
||||
...childStyles,
|
||||
...createThemedClasses(this.mode, this.color, 'item'),
|
||||
...getElementClassMap(this.el.classList),
|
||||
'item-block': true
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user