Skip to content
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

fix: send and cancel btn tooltips #436

Merged
merged 4 commits into from
Apr 25, 2024
Merged

fix: send and cancel btn tooltips #436

merged 4 commits into from
Apr 25, 2024

Conversation

andrewrisse
Copy link
Contributor

@andrewrisse andrewrisse commented Apr 24, 2024

Carbon applies the iconDescription as a tooltip for buttons that use icons. This label is attached as an aria-label to the svg component within the button, not the actual button. We need a test id to get the buttons for tests, while also ensuring the tooltips are not undefined for the user. I didn't want to put an aria-label on the button as well as the svg, so this solution fixes the tooltips while also ensuring tests pass.

@andrewrisse andrewrisse added the bug Something isn't working label Apr 24, 2024
@andrewrisse andrewrisse added this to the v0.7.0 milestone Apr 24, 2024
@andrewrisse andrewrisse self-assigned this Apr 24, 2024
Copy link

netlify bot commented Apr 24, 2024

Deploy Preview for leapfrogai-docs canceled.

Name Link
🔨 Latest commit 570b465
🔍 Latest deploy log https://app.netlify.com/sites/leapfrogai-docs/deploys/662a7614659075000830655b

@andrewrisse andrewrisse marked this pull request as ready for review April 24, 2024 14:53
@andrewrisse andrewrisse requested a review from a team as a code owner April 24, 2024 14:53
@justinthelaw
Copy link
Contributor

Recommend merging with base branch before merge, otherwise lgtm!!

@andrewrisse andrewrisse removed their assignment Apr 25, 2024
@gerred gerred merged commit bbb6ea9 into main Apr 25, 2024
7 checks passed
@gerred gerred deleted the btn-tooltips branch April 25, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants