question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improvements to build dropdown

See original GitHub issue

A few ideas for usability that we can discuss.

  1. Let’s make the button extend to the right edge. e.g., if we set the btn-group div width to 100%, the left button to 70% and the right arrow to 30%, then we get:

image

  1. ~Fix some bugginess with the popup window. On chrome in windows 10, as soon as I click anywhere inside the popup window (including trying to highlight the text) then the window disappears.~ see #158

  2. ~Add some “auto-copy to clipboard” functionality, similar to how github lets you auto-copy the github URL to the clipboard. E.g., it looks like github uses a flash app called zero clipboard to do this, so maybe it won’t be as trivial as it seems.~ seems more effort than needed

  3. Add an option for just getting the URL and not the badge. I know it’s easy for people to copy/paste the URL out of the badges themselves, but I feel like it’s a fairly common usecase for people to just want the URL.

Thoughts?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:30 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
ghostcommented, Oct 18, 2017

Thanks for the feedback, everyone!

@willingc that would be awesome to add a copy to clipboard option… I just added an icon to the top of the “Copy and share this URL” section and next to each of the badge options in the dropdown. I moved the icons to the right, to make things consistent.

screen shot 2017-10-18 at 11 03 22 am

@ellisonbg here is what I’m thinking for the collapsed state:

screen shot 2017-10-18 at 11 03 29 am

1reaction
ghostcommented, Nov 1, 2017

@choldgraf so far, I’ve added icons and created new divs for the new copy and paste menus, but I’m not sure how to transfer over some of the functions from the “Launch” dropdown down into the new sections. As of now, I’m going to leave a blank space for the copy and paste areas and left the same launch button above. Here’s what I have so far (not finished!):

screen shot 2017-11-01 at 12 42 29 pm

I’ll try to finish this styling by the end of the week, and then we can start implementing the rest of the code into it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Design Tips for Dropdown Menus on Websites and Apps
1. Consider a Click Trigger Instead of Hover · 2. Use Dropdown Indicators · 3. Don't Be Afraid to Add More Space ·...
Read more >
Drop-Down Usability: When You Should (and Shouldn't) Use ...
In General, Avoid Drop-Downs When There Are More Than 10 or Fewer Than 5 Options · What to Use Instead: Text Fields and...
Read more >
Create a drop-down list - Microsoft Support
You can help people work more efficiently in worksheets by using drop-down lists in cells. Drop-downs allow people to pick an item from...
Read more >
The Ultimate Guide to Dropdown Lists in Excel
This post will show you everything there is to know about dropdown lists in Microsoft Excel. If you are creating an Excel spreadsheet...
Read more >
How to Create a Dropdown Menu–and Why You Need One
Without a dropdown menu, your website would look cluttered and overwhelming, deterring potential customers. Learn how to make a dropdown menu for your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found