Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Toolbar buttons tooltip: show help instead of label#5107

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
afshin merged 2 commits intojupyter:masterfrommanics:toolbar-button-help-tooltip
May 17, 2020

Conversation

@manics
Copy link
Contributor

Currently the tooltip for a toolbar button with just an icon is the help text for the action/command.
If a toolbar button has a label the label text is shown alongside the button icon as expected, but it also replaces the tooltip help.

With this PR the help text is always shown as the tooltip.

Old behaviour:

44-10
44-20

New behaviour:

45-17

45-26

betatim reacted with thumbs up emoji
@lresende
Copy link
Member

What is the accessibility side effect of this change?@jasongrout@takluyver any thoughts here?

manics reacted with thumbs up emoji

@kevin-bates
Copy link
Member

@jasongrout - can you please comment on Luciano's accessibility question? Otherwise, I think this looks good.

Copy link
Member

@kevin-bateskevin-bates left a comment

Choose a reason for hiding this comment

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

My review is based purely on the excellent screenshots - thank you.

There's still the question of accessibility that should be resolved.

@kevin-bates
Copy link
Member

@tgeorgeux - I believe you deal in the realm of UX. Do these changes introduce any accessibility issues and, if so, might there be a way they can be addressed while still providing this improved behavior?

@kevin-bateskevin-bates mentioned this pull requestMay 5, 2020
24 tasks
@blink1073blink1073 added this to the6.1 milestoneMay 15, 2020
@afshinafshinforce-pushed thetoolbar-button-help-tooltip branch from0d592d3 tod7f86efCompareMay 16, 2020 11:29
Copy link
Member

@afshinafshin left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

I rebased your branch againstmaster and pushed. I would suggest adding anaria-label and also defaulting to theel.label in cases where help is not available and just switching the default order instead of removing it altogether. Something like this diff:

diff --git a/notebook/static/notebook/js/toolbar.js b/notebook/static/notebook/js/toolbar.jsindex 0e47e3470..295975c30 100644--- a/notebook/static/notebook/js/toolbar.js+++ b/notebook/static/notebook/js/toolbar.js@@ -94,7 +94,8 @@ define(['jquery','base/js/i18n'], function($, i18n) {                 }                 var button  = $('<button/>')                     .addClass('btn btn-default')-                    .attr("title", i18n.msg._(action.help))+                    .attr("aria-label", el.label)+                    .attr("title", i18n.msg._(action.help)||el.label)                     .append(                         $("<i/>").addClass(el.icon||(action||{icon:'fa-exclamation-triangle'}).icon).addClass('fa')                     );

I'm happy to push a commit with this myself since this PR was opened quite some time ago and you may be otherwise occupied.

@tgeorgeux
Copy link

@kevin-bates Sorry I missed this ping. I don't really know enough about the mechanics of what's going on to know if this change will negatively impact accessibility. It looks like a net improvement to me, with@afshin's changes mentioned above.

kevin-bates reacted with thumbs up emoji

@manicsmanicsforce-pushed thetoolbar-button-help-tooltip branch from38689d8 to5d47947CompareMay 17, 2020 21:08
@manics
Copy link
ContributorAuthor

Thanks for looking, I've made the requested change.

afshin reacted with thumbs up emojitgeorgeux reacted with heart emoji

@afshinafshin removed the request for review fromjasongroutMay 17, 2020 21:30
@afshinafshin merged commite9ce1b7 intojupyter:masterMay 17, 2020
@afshin
Copy link
Member

Thank you!

@manicsmanics deleted the toolbar-button-help-tooltip branchMay 17, 2020 22:23
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsMar 25, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@afshinafshinafshin approved these changes

+1 more reviewer

@kevin-bateskevin-bateskevin-bates approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

6.1

Development

Successfully merging this pull request may close these issues.

6 participants

@manics@lresende@kevin-bates@tgeorgeux@afshin@blink1073

[8]ページ先頭

©2009-2025 Movatter.jp