mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
fix(popover): content sizing, scoped css
fixes #15237 fixes #15589 fixes #15331
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { Component, Element, Event, EventEmitter, Listen, Method, Prop, QueueApi } from '@stencil/core';
|
||||
|
||||
import { Color, Config, Mode, ScrollBaseDetail, ScrollDetail } from '../../interface';
|
||||
import { createColorClasses } from '../../utils/theme';
|
||||
import { createColorClasses, hostContext } from '../../utils/theme';
|
||||
|
||||
@Component({
|
||||
tag: 'ion-content',
|
||||
@ -272,6 +272,7 @@ export class Content {
|
||||
return {
|
||||
class: {
|
||||
...createColorClasses(this.color),
|
||||
'content-sizing': hostContext('ion-popover', this.el),
|
||||
'overscroll': this.forceOverscroll,
|
||||
},
|
||||
style: {
|
||||
|
||||
Reference in New Issue
Block a user