Spotlight Mode does not work as expected in mobile viewports #67376
Labels
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
In the mobile view, the Spotlight Mode (or Focus Mode) does not function as expected. While it successfully highlights one block at a time and reduces the opacity of surrounding blocks on desktop, this behavior is not replicated on mobile viewports.
I believe this issue qualifies as a bug for the following reasons:
This was first introduced in this PR: #30130
Refactoring the code here should fix the problem:
gutenberg/packages/block-editor/src/components/block-list/index.js
Line 108 in b54d1fe
Proposed Solution:
We should either ensure that the Spotlight Mode Toggle on the mobile viewport functions as intended or hide the Toggle altogether from the mobile interface. Displaying the Toggle without the corresponding functionality may lead to a suboptimal user experience.
Step-by-step reproduction instructions
Spotlight Mode
.Screenshots, screen recording, code snippet
bug-report.mov
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: