mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27: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 { Component, Element, Listen, Prop, State } from '@stencil/core';
|
||||||
import { createThemedClasses } from '../../utils/theme';
|
import { createThemedClasses, getElementClassMap } from '../../utils/theme';
|
||||||
import { CssClassMap } from '../../index';
|
import { CssClassMap } from '../../index';
|
||||||
|
|
||||||
|
|
||||||
@ -94,6 +94,7 @@ export class Item {
|
|||||||
const themedClasses = {
|
const themedClasses = {
|
||||||
...childStyles,
|
...childStyles,
|
||||||
...createThemedClasses(this.mode, this.color, 'item'),
|
...createThemedClasses(this.mode, this.color, 'item'),
|
||||||
|
...getElementClassMap(this.el.classList),
|
||||||
'item-block': true
|
'item-block': true
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user