Skip to content

feat: Added skeleton component - #2205

Draft
rkaraivanov wants to merge 5 commits into
masterfrom
rkaraivanov/wip-skeleton
Draft

feat: Added skeleton component#2205
rkaraivanov wants to merge 5 commits into
masterfrom
rkaraivanov/wip-skeleton

Conversation

@rkaraivanov

Copy link
Copy Markdown
Member

Description

Type of Change

  • New feature (non-breaking change that adds functionality)

Checklist

  • My code follows the project's coding standards
  • I have tested my changes locally

Copilot AI review requested due to automatic review settings August 5, 2026 10:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new Skeleton web component to the Ignite UI Web Components library, including its Storybook documentation, base styling, unit tests, and package exports so it can be consumed like the existing components.

Changes:

  • Added IgcSkeletonComponent implementation with loading/animation behavior and measurement logic.
  • Added Storybook stories demonstrating common layouts and observer-driven remeasurement scenarios.
  • Integrated the component into the public exports and defineAllComponents() registration list, plus added base SCSS and unit tests.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
stories/skeleton.stories.ts Adds Storybook coverage for the new skeleton component, including demos.
src/index.ts Exposes IgcSkeletonComponent from the package entry point.
src/components/skeleton/themes/skeleton.base.scss Introduces base SCSS for overlay/shapes and animation keyframes.
src/components/skeleton/skeleton.ts Implements the new igc-skeleton component behavior and rendering.
src/components/skeleton/skeleton.spec.ts Adds unit + accessibility tests for defaults, loading transitions, and animations.
src/components/common/definitions/defineAllComponents.ts Registers the new component in the “define all” bundle.

Comment on lines +175 to +179
/** @internal */
public override disconnectedCallback(): void {
super.disconnectedCallback();
clearTimeout(this._revealTimeoutId);
}
Comment on lines +377 to +384
export const MutationObserverDemo: Story = {
argTypes: {
loading: {},
animation: {
control: 'select',
options: ['pulse', 'breathe', 'shimmer', 'wave', 'glow'],
},
},
Comment on lines +143 to +150
constructor() {
super();

addSlotController(this, {
slots: setSlots(),
onChange: this._scheduleMeasure,
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants