React|WC Parity: Content Switcher#18815
Conversation
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #18815 +/- ##
=======================================
Coverage 84.88% 84.88%
=======================================
Files 396 396
Lines 14512 14512
Branches 4770 4773 +3
=======================================
Hits 12319 12319
Misses 2044 2044
Partials 149 149 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| value: '', | ||
| value: 'all', | ||
| size: null, | ||
| disableSelection: false, |
There was a problem hiding this comment.
is the disableSelection needed? it's not in reacts story
There was a problem hiding this comment.
Good question! I guess it is not needed, since there is no disableSelection in the .tsx file.
I'll remove that!
| /** | ||
| * Choose whether or not to automatically change selection on focus when left/right arrow pressed. Defaults to 'automatic' | ||
| */ | ||
| @property() |
There was a problem hiding this comment.
| @property() | |
| @property({ attribute: 'selection-mode'}) |
and should we maybe a defs file with enums for the content switcher types?
There was a problem hiding this comment.
I'm not sure about this one. Do we have any examples of what you are mentioning?
There was a problem hiding this comment.
laurenmrice
left a comment
There was a problem hiding this comment.
Default story
I understand that these props: Children, className, and Value vary between WC and React because of the differences between them. But what about props: disableSelection and onBeforeSelect, I see those in WC and not in React so just wanted to clarify.
Icon Only story
The controls need to be added to this story like Reacts.
Icon Only With Layer
The controls need to be added to this story like Reacts.
* fix(OverflowMenu): fix types Fix OverflowMenuProps to include properties that get passed through to IconButton, for example align, autoAlign, and tooltip. Relatedly, fix TableToolbarMenuProps to extend OverflowMenuProps. I also removed the aria-label as it's redundant with iconDescription. * chore(OverflowMenu): align is inherited from IconButtonProps PR carbon-design-system#19131 added align manually but I changed it to inherit from IconButtonProps (rather than repeating the definition). --------- Co-authored-by: Riddhi Bansal <41935566+riddhybansal@users.noreply.github.com>
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.11 to 1.1.12. - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](juliangruber/brace-expansion@1.1.11...v1.1.12) --- updated-dependencies: - dependency-name: brace-expansion dependency-version: 1.1.12 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: kennylam <909118+kennylam@users.noreply.github.com>
…er (carbon-design-system#19649) * fix: tilegroup onchange type breaks type checking add generic type support for value and onchange handler. * docs: add contributor add michelepayne as contributor --------- Co-authored-by: kennylam <909118+kennylam@users.noreply.github.com>
carbon-design-system#19742) * fix(numberinput): update onChange value type to Number, ensure onBlur is called for steppers * fix(numberinput): ensure event loop is properly updated for type=text * docs(numberinput): new stepper logic --------- Co-authored-by: kennylam <909118+kennylam@users.noreply.github.com>
…#19744) * fix(pagination): fix the pagination loses focus * fix(pagination): adding suggestion code --------- Co-authored-by: Riddhi Bansal <41935566+riddhybansal@users.noreply.github.com> Co-authored-by: Heloise Lui <71858203+heloiselui@users.noreply.github.com>
* fix: numberInput W|C parity * feat: parity for numberInput
Co-authored-by: riddhybansal <41935566+riddhybansal@users.noreply.github.com>
* test: new multiselect test cases * test: new tests * test: added some more test cases * test: new tests for keyboard interactions * test: new test cases, again * chore: copywright * test: select all tests * test: removed snapshots folder
…system#19816) * fix: filterable multiselect tab issue * fix: removed test story
…-system#19780) * feat: add web-components unit test coverage to Codecov * fix: web-components coverage paths * fix: updates upload path * refactor: single upload point for all packages * fix: updates paths for W|C * fix: fixes coverage config * fix: path updated * refactor: test lines coverage * refactor: makes path filter broad * fix: lcov * fix: path fixed * fix: updated path to include es/ files * fix: updated path to include es/ files * fix: adds manual path transformation * fix: adds manual path transformation * fix: revert manual transform * chore: remove debug workflow
Co-authored-by: riddhybansal <41935566+riddhybansal@users.noreply.github.com>
…ult (carbon-design-system#19788) * fix(storybook): removed playground stories * fix(storybook): adjust control descriptions --------- Co-authored-by: Heloise Lui <71858203+heloiselui@users.noreply.github.com> Co-authored-by: kennylam <909118+kennylam@users.noreply.github.com>
…design-system#19804) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.29.0 to 3.29.1. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@ce28f5b...39edc49) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 3.29.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Heloise Lui <71858203+heloiselui@users.noreply.github.com>
…n-system#19803) Bumps [chromaui/action](https://github.com/chromaui/action) from 13.0.0 to 13.0.1. - [Release notes](https://github.com/chromaui/action/releases) - [Commits](chromaui/action@3378c92...b584805) --- updated-dependencies: - dependency-name: chromaui/action dependency-version: 13.0.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Heloise Lui <71858203+heloiselui@users.noreply.github.com>
|
Closing in favor of #19896 |

Closes #18319
Added to new props to match the React Content Switcher.
Changelog
New
SelectionModeprop added with "manual" and "automatic" values.SelectedIndexprop added to change the initial selectedIndex.Changed
onSelecttoonChangeon storybookRemoved
Testing / Reviewing