-
Notifications
You must be signed in to change notification settings - Fork 71
LG-5623 feat: add variant to GalleryIndicator component #3232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 0e90987 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Size Change: +404 B (+0.03%) Total Size: 1.6 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Add a variant prop to GalleryIndicator to support multiple visual styles and expose a Variant enum for consumers.
- Introduces a variant prop with a default value and wires it into indicator styling.
- Adds Variant const/type and exports it from the package.
- Updates styles and Storybook to support and showcase variants.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/gallery-indicator/src/index.ts | Re-exports GalleryIndicator and adds Variant to public API. |
| packages/gallery-indicator/src/GalleryIndicator/GalleryIndicator.types.ts | Adds variant prop, Variant const, and Variant type. |
| packages/gallery-indicator/src/GalleryIndicator/GalleryIndicator.tsx | Accepts variant with a default and passes it to styles. |
| packages/gallery-indicator/src/GalleryIndicator/GalleryIndicator.styles.ts | Implements variant-aware color mapping for base and active states. |
| packages/gallery-indicator/src/GalleryIndicator.stories.tsx | Adds controls and matrix combinations for variant. |
| .changeset/sad-apes-talk.md | Declares a minor version bump describing the new variant feature. |
✍️ Proposed changes
🎟 Jira ticket: Add GallyIndicator Color Variant
This PR adds a color variant to the
GalleryIndicatorcomponent✅ Checklist
For new components
For bug fixes, new features & breaking changes
pnpm changesetand documented my changes🧪 How to test changes