fix(select-popover): add scoped to apply proper styles to list

This commit is contained in:
Brandy Carney
2018-09-18 13:17:05 -04:00
parent d145cae801
commit fd1b636b12
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,10 @@
@import "./select-popover.vars";
:host ::slotted(ion-list) {
:host ion-list {
@include margin($select-popover-list-margin-top, $select-popover-list-margin-end, $select-popover-list-margin-bottom, $select-popover-list-margin-start);
}
:host ion-list-header,
:host ion-label {
@include margin(0);
}

View File

@ -5,7 +5,8 @@ import { createThemedClasses } from '../../utils/theme';
@Component({
tag: 'ion-select-popover',
styleUrl: 'select-popover.scss'
styleUrl: 'select-popover.scss',
scoped: true
})
export class SelectPopover implements ComponentInterface {