Skip to content

Commit 111bf63

Browse files
authored
feat(skeleton-placeholder): add parts to allow for external styling (#19972)
1 parent da33426 commit 111bf63

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/web-components/src/components/ai-skeleton/ai-skeleton-placeholder.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { carbonElement as customElement } from '../../globals/decorators/carbon-
2020
class CDSAISkeletonPlaceholder extends LitElement {
2121
render() {
2222
return html`<cds-skeleton-placeholder
23+
exportparts="placeholder:skeleton-placeholder"
2324
optional-classes="${prefix}--skeleton__placeholder--ai"></cds-skeleton-placeholder>`;
2425
}
2526

packages/web-components/src/components/skeleton-placeholder/skeleton-placeholder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class CDSSkeletonPlaceholder extends LitElement {
3939
}
4040
const classes = classMap(defaultClasses);
4141

42-
return html` <div class="${classes}"></div> `;
42+
return html` <div part="placeholder" class="${classes}"></div> `;
4343
}
4444

4545
static styles = styles;

0 commit comments

Comments
 (0)