Skip to content

Commit

Permalink
Bring the divider back to the Shadow DOM (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki24 committed Oct 18, 2021
1 parent 7be03ae commit 0bba773
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/divider/divider.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ export default css`
--spacing: var(--sl-spacing-medium);
}
:host(:not([vertical])) {
:host(:not([vertical])) .menu-divider {
display: block;
border-top: solid var(--width) var(--color);
margin: var(--spacing) 0;
}
:host([vertical]) {
height: 100%;
}
:host([vertical]) .menu-divider {
display: inline-block;
height: 100%;
border-left: solid var(--width) var(--color);
Expand Down
2 changes: 1 addition & 1 deletion src/components/divider/divider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class SlDivider extends LitElement {
}

render() {
return html``;
return html` <div part="base" class="menu-divider"></div> `;
}
}

Expand Down

0 comments on commit 0bba773

Please sign in to comment.