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(tooltip): do not use native title when tooltip is off #1196

Merged
merged 3 commits into from
Nov 25, 2019

Conversation

montezume
Copy link
Contributor

Summary

When Tooltip is set to off, we should not add aria-describedby or title.

@montezume montezume self-assigned this Nov 25, 2019
@montezume montezume added the 🐛 Type: Bug Something isn't working label Nov 25, 2019
// should not remove title
expect(button).toHaveProperty('title', 'What kind of bear is best?');
// should not have title
expect(button).not.toHaveProperty('title', 'What kind of bear is best?');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
expect(button).not.toHaveProperty('title', 'What kind of bear is best?');
expect(button).not.toHaveAttribute('title');

this one as well 😅

Copy link
Member

@emmenko emmenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@montezume montezume merged commit 04f35e9 into master Nov 25, 2019
@montezume montezume deleted the ml-tooltip-fix-new branch November 25, 2019 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants