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

Visual Editor: Hide sibling inserter by CSS #3503

Merged
merged 1 commit into from
Nov 21, 2017
Merged

Conversation

aduth
Copy link
Member

@aduth aduth commented Nov 15, 2017

Fixes #3408
Context: #3408 (comment)
Cherry-picks cefa3aa from #3502 (otherwise untestable)

This pull request seeks to simplify the rendering implementation of VisualEditorSiblingInserter to avoid manually handling rendering of the child Inserter component, instead allowing the inserter to render and visual appearance by CSS styling. This resolves issues where the Inserter was not appearing when tabbing in IE11. Some manual management of inserter visibility is still required, specifically when focus or cursor positioning moves within the inserter while active.

Testing instructions:

Verify that there are no regressions in the behavior of between-inserters.

Repeat steps to reproduce from #3408, verifying that the between-inserter can be activated via keyboard.

@aduth aduth added Browser Issues Issues or PRs that are related to browser specific problems [Feature] UI Components Impacts or related to the UI component system labels Nov 15, 2017
@aduth aduth requested a review from ephox-mogran November 15, 2017 20:25
@codecov
Copy link

codecov bot commented Nov 15, 2017

Codecov Report

Merging #3503 into master will increase coverage by 0.1%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #3503     +/-   ##
=========================================
+ Coverage   36.45%   36.56%   +0.1%     
=========================================
  Files         267      267             
  Lines        6652     6632     -20     
  Branches     1207     1203      -4     
=========================================
  Hits         2425     2425             
+ Misses       3570     3554     -16     
+ Partials      657      653      -4
Impacted Files Coverage Δ
editor/components/block-list/sibling-inserter.js 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f2d4f64...d442fa6. Read the comment docs.

@aduth aduth force-pushed the fix/3408-ie11-focus branch from 130abde to 4eccc7b Compare November 15, 2017 21:10
@aduth aduth force-pushed the fix/3408-ie11-focus branch from 4eccc7b to d442fa6 Compare November 21, 2017 17:01
@aduth aduth requested a review from afercia November 21, 2017 17:02
@aduth aduth merged commit da8aadb into master Nov 21, 2017
@afercia
Copy link
Contributor

afercia commented Nov 22, 2017

Sorry for being late. Tested on IE11 and also on a few browser/screen reader combos and it works nicely: the sibling inserter appears and is announced correctly.

However, when tabbing with a keyboard, the transition that reveals the inserter button is very slow, I guess it's the sum of the delay + the transition and... with a keyboard the tooltip appears immediately. So there's a noticeable delay from the moment the tooltip appears and when the button appears:

screen shot 2017-11-22 at 14 42 13

This doesn't happen when hovering, only when focusing the button. @jasmussen is the transition really necessary? Or maybe make it a bit faster, maybe?

@jasmussen
Copy link
Contributor

This doesn't happen when hovering, only when focusing the button. @jasmussen is the transition really necessary? Or maybe make it a bit faster, maybe?

In general I like fast or no transitions.

In this case I suspect it goes a little bit deeper, so I will defer to @aduth and @mtias on some of the details — I believe the delay is there to ensure this sibling inserter doesn't pop up visually when you just wave the mouse across the blocks. I understand the issue this brings when you tab into it. I'm not sure what a great solution is.

@afercia
Copy link
Contributor

afercia commented Nov 23, 2017

Yep I understand the delay is there as sort of hoverintent. If I remember correctly, when hovering also the tooltip is delayed. WHen tabbing, it's not so the difference in the "appearing time" is noticeable.

@aduth aduth deleted the fix/3408-ie11-focus branch November 27, 2017 15:08
@aduth
Copy link
Member Author

aduth commented Nov 27, 2017

Noting that the tab delay existed previously. Might be able to drop the transition delay for focus specifically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Browser Issues Issues or PRs that are related to browser specific problems [Feature] UI Components Impacts or related to the UI component system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IE 11: sibling inserter doesn't appear, breaking keyboard navigation
3 participants