Z-index on hover is still applied even when frontend-editing switch is set to Off

Created on 10 December 2024, 8 days ago

Problem/Motivation

If the frontend-editing module is enabled with the "Enable on/off toggle in UI" setting turned on, the higher z-index meant for a clearer view of the hovered element is still applied even if the toggle is set to off.

Steps to reproduce

1. Enable the "Enable on/off toggle in UI" setting in frontend-editing UI settings
2. Go on any content page and set the switch to "Off" to disable the frontend-editing functionality
3. Hover over a frontend-editing enabled element or force the element state in developer tools, observe that z-index is still applied

Proposed resolution

1. Do not apply z-index when the class .frontend-editing--hidden is present in the body

🐛 Bug report
Status

Active

Version

1.8

Component

Code

Created by

🇵🇹Portugal bbruno Poland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024