Skip to content

Make tooltip hoverable and dismissible - #83830

Merged
fluttergithubbot merged 5 commits into
flutter:masterfrom
chunhtai:issues/75885
Jun 4, 2021
Merged

fluttergithubbot merged 5 commits into
flutter:masterfrom
chunhtai:issues/75885

Conversation

@chunhtai

@chunhtai chunhtai commented Jun 2, 2021

Copy link
Copy Markdown
Contributor

fixes #75885

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard Bot added p: material_ui material_ui package in flutter/packages framework flutter/packages/flutter repository. See also f: labels. labels Jun 2, 2021
@google-cla google-cla Bot added the cla: yes label Jun 2, 2021
@chunhtai
chunhtai requested a review from gspencergoog June 2, 2021 21:06
/// false if there is no tooltip shown on the screen.
static bool dismissToolTip() {
if (_openedToolTips.isNotEmpty) {
_openedToolTips.first._hideTooltip(immediately: true);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why just the first one? Why not hide them all?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sounds good

expect(find.text(tooltipText), findsNothing);
});

testWidgets('Tooltip text is also when hoverable', (WidgetTester tester) async {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think there's a typo in this description, but I'm not sure what you meant to say...

@gspencergoog gspencergoog left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Web]Tooltip widget meets accessibility standard

3 participants