Bring the divider back to the Shadow DOM (#568)

This commit is contained in:
Yuki Nishijima
2021-10-18 09:14:13 -04:00
committed by GitHub
parent 7be03ae623
commit 0bba773c3e
2 changed files with 6 additions and 2 deletions

View File

@@ -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);

View File

@@ -30,7 +30,7 @@ export default class SlDivider extends LitElement {
}
render() {
return html``;
return html` <div part="base" class="menu-divider"></div> `;
}
}