Skip to content

feat: replace sd-skeleton web component with CSS class (alternative) - #3087

Open
mariohamann wants to merge 1 commit into
mainfrom
refactor-skeleton
Open

feat: replace sd-skeleton web component with CSS class (alternative)#3087
mariohamann wants to merge 1 commit into
mainfrom
refactor-skeleton

Conversation

@mariohamann

Copy link
Copy Markdown
Contributor

Introduce sd-skeleton as a CSS utility class in packages/styles/src/modules/skeleton.css. The class uses a ::after overlay with isolation: isolate so it correctly covers shadow DOM elements (e.g. sd-button) without z-index leakage, and animates the host rather than the overlay to prevent opacity bleed-through at mid-pulse.

Pair with the native inert attribute to remove the element from the a11y tree and prevent focus during loading — toggle both together.

Deprecate <sd-skeleton> web component with @status deprecated and a runtime console.warn.

Add Styles/sd-skeleton stories (overview, variants, on-elements, toggle demo) and screenshot test stories. Update component stories with deprecation notices.

Also fix ESLint config to disable no-unsafe-call for *.spec.ts files (was only *.test.ts).

Description:

Definition of Reviewable:

  • Documentation is created/updated
  • Migration Guide is created/updated
  • E2E tests (features, a11y, bug fixes) are created/updated
  • Stories (features, a11y) are created/updated
  • relevant tickets are linked

@changeset-bot

changeset-bot Bot commented Jun 16, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: caf166b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Storybook has been deployed for branch refactor-skeleton

Introduce `sd-skeleton` as a CSS utility class in `packages/styles/src/modules/skeleton.css`.
The class uses a `::after` overlay with `isolation: isolate` so it correctly covers shadow DOM
elements (e.g. `sd-button`) without z-index leakage, and animates the host rather than the
overlay to prevent opacity bleed-through at mid-pulse.

Pair with the native `inert` attribute to remove the element from the a11y tree and prevent
focus during loading — toggle both together.

Deprecate `<sd-skeleton>` web component with `@status deprecated` and a runtime `console.warn`.

Add `Styles/sd-skeleton` stories (overview, variants, on-elements, toggle demo) and screenshot
test stories. Update component stories with deprecation notices.

Also fix ESLint config to disable `no-unsafe-call` for `*.spec.ts` files (was only `*.test.ts`).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mariohamann
mariohamann changed the base branch from feat/issue-workflow-mcp to main June 26, 2026 11:19
@mariohamann
mariohamann marked this pull request as ready for review June 26, 2026 11:19
@martascorreia martascorreia changed the title feat: replace sd-skeleton web component with CSS class (alterantive) feat: replace sd-skeleton web component with CSS class (alternative) Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📋 Backlog

Development

Successfully merging this pull request may close these issues.

fix/feat: ✨ allow sd-skeleton to adapt to slotted content

1 participant