use connectedCallback

This commit is contained in:
Cory LaViska
2022-07-20 16:46:06 -04:00
parent 36ee3c8a70
commit 04f7d2e182

View File

@@ -19,7 +19,8 @@ export default class SlDivider extends LitElement {
/** Draws the divider in a vertical orientation. */
@property({ type: Boolean, reflect: true }) vertical = false;
firstUpdated() {
connectedCallback() {
super.connectedCallback();
this.setAttribute('role', 'separator');
}