Skip to content

Conversation

@skateman
Copy link
Member

@skateman skateman commented Mar 14, 2019

When there's a toolbar dropdown with all child items disabled, it is not possible to open it. Each disabled toolbar button contains a hint about why it is disabled if you hover on it. These two things don't really fit together as you are not able to hover onto a disabled child element in a dropdown if all the other child elements are disabled.

Screenshot from 2019-03-14 13-41-42

My solution is to, if it is necessary, collect all the tooltips from the child items and display them inside the tooltip of the parent element.

list-bullets

@miq-bot add_reviewer @karelhala
@miq-bot add_reviewer @Hyperkid123
@miq-bot add_label toolbars, hammer/no, ux/review

Fixes ManageIQ/manageiq#18460

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1699322

@miq-bot miq-bot requested a review from karelhala March 14, 2019 12:49
@miq-bot
Copy link
Member

miq-bot commented Mar 14, 2019

@skateman Cannot apply the following label because they are not recognized: toolbars

@terezanovotna
Copy link

or-should work

we want to show what is the title and what is the explanation

@skateman
Copy link
Member Author

@terezanovotna so you're saying:

Parent button tooltip
⚬child button title - child button tooltip
⚬child button title - child button tooltip
...

Like this?

@terezanovotna
Copy link

How about this?

Title

Subtitle --- Lorem Ipsum is simply dummy text
of the printing and typesetting industry. Lorem Ipsum
has been the industry's standard dummy text ever s
ince the 1500s,

Subtitle --- Lorem Ipsum is simply dummy text
of the printing and typesetting industry. Lorem Ipsum
has been the industry's standard dummy text ever s
ince the 1500s,

@skateman
Copy link
Member Author

@terezanovotna here are some examples that I tried:
Bullets - one dash - single newline
list-bullets
Dashes - one dash - single newline
list-dashes
Nothing - one dash - single newline
list-null
Nothing - one dash - double newline
list-null-twonewlines
Nothing - three dashes - double newline
list-twonewlines-threedashes

I can vary some of these combos if you want to see them, just let me know which one 😉

@terezanovotna
Copy link

this is my winner.

Bullets - one dash - single newline

Thank you!

@skateman skateman force-pushed the toolbar-dropdown-disabled branch from 7862564 to 1783855 Compare March 15, 2019 18:03
@skateman
Copy link
Member Author

@karelhala travis issues seem irrelephant to me

Copy link
Contributor

@Hyperkid123 Hyperkid123 left a comment

Choose a reason for hiding this comment

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

Looks gut. And Travis is complains about dialog something else.

@skateman
Copy link
Member Author

Travis fix is here #374
@terezanovotna can I get your approval label? 😉

@skateman skateman closed this Mar 19, 2019
@skateman skateman reopened this Mar 19, 2019
@skateman
Copy link
Member Author

@martinpovolny it's already implemented and I think you meat React and not Angular 😉
Anyway, @terezanovotna is on PTO, but as she chose the right solution, I think it can be taken as an approval and it is okay to merge.

@himdel
Copy link
Contributor

himdel commented Mar 19, 2019

undefined

Looks like this is also trying to add the * undefined - undefined for separators.

@skateman skateman force-pushed the toolbar-dropdown-disabled branch from 1783855 to ab4887d Compare March 19, 2019 10:35
@miq-bot
Copy link
Member

miq-bot commented Mar 19, 2019

Checked commit skateman@ab4887d with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 🍰

@himdel
Copy link
Contributor

himdel commented Mar 19, 2019

LGTM, now only seeing the non-empty items :)

@himdel himdel merged commit 348f262 into ManageIQ:master Mar 19, 2019
@himdel himdel self-assigned this Mar 19, 2019
@himdel himdel added this to the Sprint 108 Ending Apr 1, 2019 milestone Mar 19, 2019
@skateman skateman deleted the toolbar-dropdown-disabled branch March 19, 2019 13:52
@terezanovotna
Copy link

@miq-bot remove_label ux/review
@miq-bot add_label ux/approved

@skateman
Copy link
Member Author

@miq-bot rm_label hammer/no
@miq-bot add_label hammer/yes

@martinpovolny
Copy link
Member

simaishi pushed a commit that referenced this pull request May 1, 2019
Squash tooltips from child elements in toolbar dropdown if disabled

(cherry picked from commit 348f262)

https://bugzilla.redhat.com/show_bug.cgi?id=1705141
@simaishi
Copy link

simaishi commented May 1, 2019

Hammer backport details:

$ git log -1
commit a5a8143d02b5ece5b71bfab9b80f1dc4b58a212f
Author: Martin Hradil <himdel@seznam.cz>
Date:   Tue Mar 19 13:03:37 2019 +0000

    Merge pull request #372 from skateman/toolbar-dropdown-disabled
    
    Squash tooltips from child elements in toolbar dropdown if disabled
    
    (cherry picked from commit 348f2620c39582a514e600cf53d55908d409302e)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1705141

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VMware VMRC Console Not Available

7 participants