-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat(ContentSwitcher): add icon-only ContentSwitcher #13378
Merged
kodiakhq
merged 21 commits into
carbon-design-system:main
from
tw15egan:icon-only-content-switcher
Apr 10, 2023
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
31133ec
feat(ContentSwitcher): add icon-only ContentSwitcher
tw15egan 2067a8d
feat(ContentSwitcher): add icon-only ContentSwitcher functionality
tw15egan c1191b3
style(ContentSwitcher): add styles for icon-only ContentSwitcher
tw15egan 1a4b4d4
test(ContentSwitcher): add e2e tests for icon-only ContentSwitcher
tw15egan 57b516b
fix(Switch): remove extra aria-label
tw15egan 02aa257
feat(IconSwitch): refactor new features to IconSwitch component
tw15egan 5d44cd3
fix(ContentSwitcher): remove isIconOnly prop
tw15egan 94f7e5f
chore(test): update snapshots
tw15egan 3c33ab8
feat(IconSwitch): add IconButton props, refactor
tw15egan 2f91e68
test(ContentSwitcher): update snapshots
tw15egan e0d32ec
refactor(IconSwitch): remove defaultProps
tw15egan 526f087
test(IconSwitch): add tests
tw15egan 2ad20ff
refactor(IconSwitch): remove wrapper, add wrapperClasses to IconButton
tw15egan ce3c38b
chore(test): move test back
tw15egan 840025a
chore(test): move test back
tw15egan 7694702
style(ContentSwitcher): make fixes based on design review
tw15egan 759a8d1
style(ContentSwitcher): fix focus issue
tw15egan dbf5359
test(e2e): add withLayer story, e2e tests
tw15egan d0d39ea
Merge branch 'main' into icon-only-content-switcher
tw15egan 69acca9
Merge branch 'main' into icon-only-content-switcher
tw15egan 9677d47
Merge branch 'main' into icon-only-content-switcher
kodiakhq[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
Just want to make a note here that this locks the API so consumers can only use IconSwitch. It could prove problematic if someone were to to roll their own IconSwitch component and names it something different. Let's cross that bridge if we come to it though - no need to over optimize for it right now imo