Skip to content

Commit

Permalink
fix(select-popover): add scoped to apply proper styles to list
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyscarney committed Sep 18, 2018
1 parent d145cae commit fd1b636
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion core/src/components/select-popover/select-popover.scss
Original file line number Diff line number Diff line change
@@ -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);
}
3 changes: 2 additions & 1 deletion core/src/components/select-popover/select-popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit fd1b636

Please sign in to comment.