Skip to content

Commit

Permalink
型チェックが失敗するのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
oki07 committed Nov 26, 2024
1 parent e7b3b29 commit 8337ebd
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 21 deletions.
16 changes: 9 additions & 7 deletions src/components/definitionList/sp-definition-list-dd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ export class SpDefinitionListDd extends HTMLElement {
}

connectedCallback() {
this.shadowRoot.adoptedStyleSheets = [
...this.shadowRoot.adoptedStyleSheets,
styles,
];
this.#ddElement.classList.add("base");
this.#ddElement.innerHTML = this.innerHTML;
this.shadowRoot.appendChild(this.#ddElement);
if (this.shadowRoot) {
this.shadowRoot.adoptedStyleSheets = [
...this.shadowRoot.adoptedStyleSheets,
styles,
];
this.#ddElement.classList.add("base");
this.#ddElement.innerHTML = this.innerHTML;
this.shadowRoot.appendChild(this.#ddElement);
}
}
}

Expand Down
16 changes: 9 additions & 7 deletions src/components/definitionList/sp-definition-list-dt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ export class SpDefinitionListDt extends HTMLElement {
}

connectedCallback() {
this.shadowRoot.adoptedStyleSheets = [
...this.shadowRoot.adoptedStyleSheets,
styles,
];
this.#dtElement.classList.add("base");
this.#dtElement.innerHTML = this.innerHTML;
this.shadowRoot.appendChild(this.#dtElement);
if (this.shadowRoot) {
this.shadowRoot.adoptedStyleSheets = [
...this.shadowRoot.adoptedStyleSheets,
styles,
];
this.#dtElement.classList.add("base");
this.#dtElement.innerHTML = this.innerHTML;
this.shadowRoot.appendChild(this.#dtElement);
}
}
}

Expand Down
16 changes: 9 additions & 7 deletions src/components/definitionList/sp-definition-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ export class SpDefinitionList extends HTMLElement {
}

connectedCallback() {
this.shadowRoot.adoptedStyleSheets = [
...this.shadowRoot.adoptedStyleSheets,
styles,
];
this.#dlElement.classList.add("base");
this.#dlElement.appendChild(this.#slotElement);
this.shadowRoot.appendChild(this.#dlElement);
if (this.shadowRoot) {
this.shadowRoot.adoptedStyleSheets = [
...this.shadowRoot.adoptedStyleSheets,
styles,
];
this.#dlElement.classList.add("base");
this.#dlElement.appendChild(this.#slotElement);
this.shadowRoot.appendChild(this.#dlElement);
}
}
}

Expand Down

0 comments on commit 8337ebd

Please sign in to comment.