Repository navigation
feat(button): show only the icon and vertical badges in icon-only buttons #31648
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
Open
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
d2a0364
feat(button): show only the icon and vertical badges in icon-only but…
thetaPC db6eca1
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 3c8aba6
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC ba5108a
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 6c03447
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 554b0cb
fix(button): hide icon-only text through the default slot instead of …
thetaPC 638bfbc
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 736ff49
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 22d07b4
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 8878102
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC ba8c040
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 41f7635
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC de1c6ae
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 339daa0
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 0700826
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 483ae2f
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC a8cf631
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC e371569
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 791e695
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 9f6aee1
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 5feb0ce
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC ec7aeb9
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC dd49a78
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 73bcbf1
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 8b8d804
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 22a4ad5
fix(button): skip the start and end slots in icon-only buttons
thetaPC a9d788d
fix(button): keep wrapped icon-only text in the accessibility tree
thetaPC b68068b
Merge remote-tracking branch 'origin/FW-6838-badge-spacing' into FW-6…
thetaPC 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 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
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
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
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
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.
This one worries me a bit, because text wrapped in an element loses its accessible name now. With
<span>Add item</span>or<ion-label>Add item</ion-label>next to the icon, the button has an empty name, where before it was "Add item", and only bare text still works. A visually hidden span is a pretty common way to label an icon button, so could the default-slot elements be visually hidden instead ofdisplay: none? If not, BREAKING.md should say only bare text names the button, since right now it says hidden text still does. A test with wrapped text would catch this either way.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.
Good catch. In a9d788d, content without a slot is visually hidden instead of
display: none, so<span>and<ion-label>name the button again. BREAKING.md and theicon-onlyslot docs now say it's visually hidden. The test covers bare text,<span>and<ion-label>, and fails on the old code.One side effect: an inline badge now adds to the name, the same way a vertical badge already did.