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

Allow toolbar buttons to have short label #2433

Merged
merged 1 commit into from
Apr 25, 2017

Conversation

takluyver
Copy link
Member

I've wanted this for ages - little monochrome icons can only convey so much information. So far, I've only added a label to the run button.

screenshot from 2017-04-21 14-50-06

I've wanted this for ages - little monochrome icons can only convey so
much information. So far, I've only added a label to the run button.
@takluyver
Copy link
Member Author

I propose that we use labels only for a few particularly important buttons (making a bigger target that's easier to click), and for things that aren't otherwise clear. E.g. For cite2c, I want to have a 'Cite' label to highlight what the button group is, because there's no widely recognised icon for citations.

Design choices:

  • Not to use the help text from the action: it's typically longer, e.g. "run cell, select below"
  • Not to store the label as a new attribute on the action. Conceptually, this is related to the toolbar button, not the underlying action. Also, doing it this way makes it easy to add labels to old-style button definitions that don't use an action.

@minrk
Copy link
Member

minrk commented Apr 24, 2017

Makes sense to me. cc @ellisonbg, @Carreau for design.

@Carreau
Copy link
Member

Carreau commented Apr 24, 2017 via email

@ellisonbg
Copy link
Contributor

ellisonbg commented Apr 24, 2017 via email

@takluyver
Copy link
Member Author

There doesn't appear to be any other code to add text to the button. If there's no icon specified, it uses the fa-exclamation-triangle icon.

@Carreau
Copy link
Member

Carreau commented Apr 25, 2017

There doesn't appear to be any other code to add text to the button. If there's no icon specified, it uses the fa-exclamation-triangle icon.

fair enough. I'm pretty sure you brought up the problem before.

@Carreau Carreau merged commit 7dac0a2 into jupyter:master Apr 25, 2017
@takluyver takluyver deleted the toolbar-btn-label branch April 25, 2017 19:35
@takluyver
Copy link
Member Author

Thanks :-)

@zertrin zertrin mentioned this pull request Oct 2, 2017
@zertrin
Copy link

zertrin commented Oct 2, 2017

Just a heads-up on a side-effect reported in issue #2845

(do you consider the workaround of disabling it in custom.css the right way of configuring it?)

@Carreau
Copy link
Member

Carreau commented Oct 2, 2017

Just a heads-up on a side-effect reported in issue #2845

(do you consider the workaround of disabling it in custom.css the right way of configuring it?)

For now; Yes.

@rgbkrk
Copy link
Member

rgbkrk commented Oct 2, 2017

Nice, I just noticed this last week with the hide code cell extensions and was really happy that the labels were there now. 😄

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants