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

Display Bootstrap-like tooltips for menu items #104

Open
jywarren opened this issue Aug 8, 2018 · 14 comments · May be fixed by #1249
Open

Display Bootstrap-like tooltips for menu items #104

jywarren opened this issue Aug 8, 2018 · 14 comments · May be fixed by #1249

Comments

@jywarren
Copy link
Member

jywarren commented Aug 8, 2018

This may need to be upstream in Leaflet.Toolbar? https://github.com/leaflet/Leaflet.toolbar

R - toggle rotate/distort
L - lock
T - transparent
O - outline (pretty similar to transparent)

image

@Imvec

@roshniRam
Copy link

@jywarren Can I work on this?

@jywarren
Copy link
Member Author

jywarren commented Oct 2, 2018 via email

@jywarren
Copy link
Member Author

Hi @roshniRam are you still interested in this at all?

I think we may be able to remove the tooltip attribute here and just build in the Bootstrap-style tooltips into the span:

html: '<span class="fa fa-adjust"></span>',
tooltip: 'Toggle Image Transparency',
title: 'Toggle Image Transparency'

It would require calling the tooltip bootstrap javascript function here, too:

https://getbootstrap.com/docs/3.3/javascript/#tooltips

@jywarren
Copy link
Member Author

This has been marked as a good candidate for becoming a first-timers-only issue like these, meaning that it's simple, self-contained, and with some extra formatting, could be a great entry point for a new contributor. If you're familiar enough with this code, please consider reformatting or reposting it as a first-timers-only issue, and then ping @publiclab/reviewers to get it labelled. Or, if this is not your first time, try to solve it yourself!


@sashadev-sky
Copy link
Member

Ah just saw this one after all my tooltip updates! I will open an issue for this soon to get one done and the workflow down then an FTO for the rest. Will use the nice tooltips from material kit pro to match the icons :)

@jywarren
Copy link
Member Author

jywarren commented Jun 14, 2019 via email

@rexagod
Copy link
Member

rexagod commented Dec 2, 2019

Uploaded to GCI dashboard.

@SidharthBansal
Copy link
Member

published

@neelesh17
Copy link
Contributor

could i try this issue?

@sashadev-sky
Copy link
Member

@neelesh17 yes would love your help on this! The one catch is that we should do it without pulling in an external library, so you you'll have to make them from scratch. (I find that more fun anyways) 👍

@neelesh17
Copy link
Contributor

hey @sashadev-sky, i am still unclear about what is it we are trying to achive in this issue.Would you help me out please.

@sashadev-sky
Copy link
Member

@neelesh17 Currently the tooltips look like this:

image

And we were thinking to make them look nicer, closer to this: (this screenshot is from a toolbar in a different PL project, only the tooltip is relevant)

image

but also open to other designs if theres a specific one you like and want to implement

@vanithaak
Copy link
Contributor

Hi @roshniRam are you still interested in this at all?

I think we may be able to remove the tooltip attribute here and just build in the Bootstrap-style tooltips into the span:

html: '<span class="fa fa-adjust"></span>',
tooltip: 'Toggle Image Transparency',
title: 'Toggle Image Transparency'

It would require calling the tooltip bootstrap javascript function here, too:

https://getbootstrap.com/docs/3.3/javascript/#tooltips

Hi @jywarren , @sashadev-sky , @TildaDares I think the file "DistortableImage.EditToolbar.js" inside edit folder isn't their anymore. Please correct me if I'm wrong. Thanks!!

@jywarren
Copy link
Member Author

Hi, good point! Do you think the code lives here now?

html: '',
className: '',
tooltip: '',
},

@vanithaak vanithaak linked a pull request Oct 27, 2022 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants