-
Notifications
You must be signed in to change notification settings - Fork 115
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
Make the HoverBar more visible #724
Make the HoverBar more visible #724
Conversation
Need to fix some IE issue. |
42e2b90
to
953b6d9
Compare
IE is happy. Ready for review. |
'hover-bar__area', | ||
{ 'hover-bar__area--focus': popoverOpen } | ||
); | ||
const label = i18n._t('ElementAddNewButton.ADD_BLOCK', 'Add block'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use the same label as the AddNewButton. We might want to add something more contextual like "Insert block".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I do think the fade in should be 100ms instead of 200ms. For someone who moves their mouse around quickly, they may never notice the hover bar at all.
I've centred the (+) icon. |
Co-Authored-By: Robbie Averill <[email protected]>
The original version had a much longer delay. I think the point of the delay is to avoid having the hover bar pop up everywhere has you move your mouse across the elemental area. It's a compromise between making the feature easy to discover and having this bar jumping at you all the time. If we make the delay so small that it's absolutely impossible to miss it, then we'll probably end up having this aggressive blue bar irritatingly popping everywhere. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A structural suggestion for your consideration
I've added one pixel. It seems to make things a little bit better in chrome and a little bit worst in Firefox. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it, just confirming with Jared
One quirk in IE11, when you tab into it and press enter it opens the new block dialog and flashes briefly (might be a reload of something), then the focus is lost and when you close the dialog (esc key) you continue to tab from the top of the screen again. Might be a separate issue, but worth mentioning. |
So when you escape the popover in IE11, you would want the focus to be on the same hover bar? |
Yeah correct, this is how Chrome behaves for me |
Firefox acts more or less the same as a Chrome. Interestingly, the popover on the green "add block" button seems to return the focus to the start of the page in all browsers. We might need to add an |
Ok I'll raise another issue to track this - you should be able to spam enter then esc to toggle repeatedly |
I've re factored the HoverBar to remove all the timeout logic. I've added a HoverBar at the start of the Elemental area as well. I made the HoverBar focusable and I added an aria label for accessibility.
Parent issues