-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[CL-879] use tooltip on icon button #16576
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
BryanCunningham
wants to merge
42
commits into
main
Choose a base branch
from
uif/CL-879/tooltip-on-icon-button
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+137
โ49
Open
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
a979277
Add tooltip to icon button to display label
BryanCunningham d587e36
remove legacy cdr variable
BryanCunningham ae4874f
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham e797a0b
create overlay on focus or hover
BryanCunningham ccaa6f7
attach describdedby ids
BryanCunningham dffc8e3
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham 1249dc6
fix type errors
BryanCunningham 4960aab
remove aria-describedby when not necessary
BryanCunningham f6ff777
fix failing tests
BryanCunningham c4043b7
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham f97b8f1
implement Claude feedback
BryanCunningham 4611ed6
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham a2d9202
fixing broken specs
BryanCunningham 0b1638f
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham 9091038
remove host attr binding
BryanCunningham dcd8080
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham b7f454e
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham 7d21320
Simplify directive aria logic
BryanCunningham 6c89964
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham 3ede3a6
Move id to statis number
BryanCunningham b434f33
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham 767443c
do not render empty tooltip
BryanCunningham 595cbb3
pass id to tooltip component
BryanCunningham f5e8648
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham cfa9edc
remove pointer-events none to allow tooltip on normal buttons
BryanCunningham 81a6ff8
exclude some tooltip stories
BryanCunningham 2ff37cb
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham 1bdf199
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham 307b0d2
change describedby input name
BryanCunningham e78c094
add story with tooltip on regular button
BryanCunningham fdc6ec3
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham e5b6835
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham c3e8e4c
enhanced tooltip docs
BryanCunningham 30ebc63
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham 8d2345b
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham 19c19ea
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham a107c0b
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham 8558cc7
set model directly
BryanCunningham 77efb1b
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham cdf5a00
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham 86b5db9
change model to input
BryanCunningham 6169661
Merge remote-tracking branch 'origin/main' into uif/CL-879/tooltip-onโฆ
BryanCunningham 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<!-- eslint-disable-next-line tailwindcss/no-custom-classname --> | ||
<div | ||
class="bit-tooltip-container" | ||
[attr.data-position]="tooltipData.tooltipPosition()" | ||
[attr.data-visible]="tooltipData.isVisible()" | ||
> | ||
<div role="tooltip" class="bit-tooltip"> | ||
<ng-content>{{ tooltipData.content() }}</ng-content> | ||
@if (tooltipData.content()) { | ||
<div | ||
class="bit-tooltip-container" | ||
[attr.data-position]="tooltipData.tooltipPosition()" | ||
[attr.data-visible]="tooltipData.isVisible()" | ||
> | ||
<div role="tooltip" class="bit-tooltip" [id]="tooltipData.id()"> | ||
<ng-content>{{ tooltipData.content() }}</ng-content> | ||
</div> | ||
</div> | ||
</div> | ||
} |
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
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.
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 is safe to remove?
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.
@willmartian As far as I can tell, yeah. We're still swallowing the click with our host directive. And, it's necessary to remove in order to apply tooltips to disabled buttons
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.
Probably scope creep for this ticket, but since we already have a team looking to use the tooltip on a button, we should make a story for it
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.
Added a story here