Description

The primary goal of this issue is to improve on the last change to the Frontend Editing hover styling.

Make outline more subtle and fix visible accessibility text

The hover styling should be kept subtle and to a minimum in order to leave the content exactly as it is, to simply provide a hint of what can be done.

This includes making the outline thinner, as well as keeping the design similar to the rest of the UI

Fix outline for nested elements

Jittering UI

When elements are nested, the outline causes a "jiggle", causing the inner paragraphs to move. It would be optimal to prevent any sort of shift in content when moving around the page.

Fix outline for parent elements

Outline UI

With a lot of nesting, there are too many outlines. Only the current outline should be highlighted, the outer ones should be more subtle and less visible. We also need to prevent all editing icons from being visible inside a nested paragraph. Only the currently highlighted paragraph should be focused.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bbruno created an issue. See original summary.

bbruno’s picture

Issue summary: View changes
FileSize
102.08 KB
152.99 KB
bbruno’s picture

Issue summary: View changes
bbruno’s picture

Issue summary: View changes
bramvandenbulcke’s picture

I agree with the remarks.

The plus icons at the top and bottom of the element are certainly an improvement. Also the icons are nicer than the 1.5x icons. But the 'jiggle' (elements moving) when hovering over the elements is annoying.

bbruno’s picture

Status: Active » Needs review
bbruno’s picture

Assigned: bbruno » Unassigned

  • bbruno committed 05a0ea9f on 1.x
    Issue #3436377: Update hover logic, improve styling
    
a.dmitriiev’s picture

Status: Needs review » Fixed
SirClickalot’s picture

I have noticed that latest release (1.61) we are still seeing plenty of 'jiggling' with embedded Paragraphs...

still-jiggling-for-embedded-paragraphs

a.dmitriiev’s picture

Status: Fixed » Needs work
bbruno’s picture

Assigned: Unassigned » bbruno
Status: Needs work » Active

bbruno’s picture

Status: Active » Needs review

Removed the what seems to be unnecessary margin: 0; styling for nested elements which could be causing 'jiggling' if the element already had an existing margin applied to it.

a.dmitriiev’s picture

Status: Needs review » Fixed

Looks like it was the problem, I have merged the MR and it will be added to the next release.

SirClickalot’s picture

I don't think this is entirely fixed, it's better, but not fixed.

Here is a recording of 1.62 in action (showing the new default editing bounds colour)...

Embedded-Paragraphs-still-jiggling

I think the residual jiggling is because the .common-actions-container container has either a bottom-padding or a bottom-margin or something like that whereas it should simply 'appear' over the underlaying markup and not attempt to push anything out of the way.

I have highlighted the first line to accentuated that it seems to be the main body of the paragraph that is affected as opposed to the title.

I appreciate that some might see this is fine tuning but we think it's really important that any front-end editing tools never change the appearance of the underlying content even a tiny bit!

a.dmitriiev’s picture

Status: Fixed » Needs work
SirClickalot’s picture

I have looked into this a bit deeper and I can confirm now that I think it is actually to the theming of the div.add-paragraphs.
Deleting that div from that markup under browser inspection completely removes all remnants of 'jiggling'!

bbruno’s picture

Assigned: bbruno » Unassigned
Status: Needs work » Needs review

Thanks SirClickalot for that last comment, it helped with reaching a possible solution since we can not replicate your issue. Updated the MR with a fix that should hopefully sort this out. Up for review.

a.dmitriiev’s picture

MR was merged, SirClickalot please verify if this helps. You can use 1.x-dev version of the module to check that, no release was done yet.

SirClickalot’s picture

Confirmed, all fixed, no more jiggling!
Thank you

a.dmitriiev’s picture

Status: Needs review » Fixed