You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
packages/react/src/internal/useOverflowItems.ts — extended to support the overflow measurement logic required by TagOverflow; fixed offsetRefHandler return type (HTMLElement | null) to match implementation and resolve TS2322
packages/styles/scss/components/_index.scss — @use 'TagOverflow' added (commented with TODO until TagOverflow moves to stable)
packages/react/src/index.ts — export block added (commented out with TODO for v12, with reminder to remove from excludeProductsComponents)
packages/react/product-migrated-components.mjs — TagOverflow.stories.js added to productMigratedStoryGlobs and src/components/TagOverflow/**/* added to excludeProductsComponents
Testing / Reviewing
Run unit tests:
yarn jest packages/react/src/components/TagOverflow
Start the v12 Storybook and verify the Preview/TagOverflow stories render correctly with all controls:
yarn storybook:v12
PR Checklist
As the author of this PR, before marking ready for review, confirm you:
Reviewed every line of the diff
Updated documentation and storybook examples
Followed the required v12 migration documentation for any code change that affects v12, or struck through this item because the PR does not affect v12
Wrote passing tests that cover this change
Addressed any impact on accessibility (a11y)
Tested for cross-browser consistency
Validated that this code is ready for review and status checks should pass
❌ Patch coverage is 75.34247% with 36 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.62%. Comparing base (7bd6bbb) to head (8373f63).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #22930
Migrates the
TagOverflowcomponent fromcarbon-for-ibm-productsinto the Carbon core monorepo.Changelog
New
packages/react/src/components/TagOverflow/TagOverflow.tsx— component implementation with full TypeScript props interface (TagOverflowProps,TagOverflowItem)packages/react/src/components/TagOverflow/TagOverflowModal.tsx— modal sub-component for viewing all overflow tagspackages/react/src/components/TagOverflow/TagOverflowPopover.tsx— popover sub-component for inline overflow displaypackages/react/src/components/TagOverflow/constants.ts— sharedTYPESenum for tag type valuespackages/react/src/components/TagOverflow/index.ts— component barrel filepackages/react/src/components/TagOverflow/TagOverflow.stories.js— Storybook stories (Default, FiveTags, LongTags, UserAvatars, CustomComponents)packages/react/src/components/TagOverflow/TagOverflow.mdx— MDX docspackages/react/src/components/TagOverflow/story.scss— story-specific stylespackages/react/src/components/TagOverflow/utils.js— story fixtures and helpers (tag arrays, UserAvatar data, IconComponent)packages/react/src/components/TagOverflow/__tests__/TagOverflow-test.js— unit testse2e/components/TagOverflow/TagOverflow-test.avt.e2e.js— AVT e2e test skeleton (all tests usetest.skip()until v12 Storybook is live in CI)packages/styles/scss/components/TagOverflow/_tag-overflow.scss— component SCSS stylespackages/styles/scss/components/TagOverflow/_index.scss— SCSS indexpackages/react/scss/components/tag-overflow/_index.scss— forwarding stub indexpackages/react/scss/components/tag-overflow/_tag-overflow.scss— forwarding stubChanged
packages/react/src/internal/useOverflowItems.ts— extended to support the overflow measurement logic required by TagOverflow; fixedoffsetRefHandlerreturn type (HTMLElement | null) to match implementation and resolve TS2322packages/styles/scss/components/_index.scss—@use 'TagOverflow'added (commented with TODO until TagOverflow moves to stable)packages/react/src/index.ts— export block added (commented out with TODO for v12, with reminder to remove fromexcludeProductsComponents)packages/react/product-migrated-components.mjs—TagOverflow.stories.jsadded toproductMigratedStoryGlobsandsrc/components/TagOverflow/**/*added toexcludeProductsComponentsTesting / Reviewing
Run unit tests:
Start the v12 Storybook and verify the Preview/TagOverflow stories render correctly with all controls:
PR Checklist
As the author of this PR, before marking ready for review, confirm you:
More details can be found in the pull request guide