Allow modifying settings visibility globally

Created on 28 January 2025, 2 months ago

Problem/Motivation

Since there's some accessibility issues on Settings button 🐛 Settings Button UX Improvements Active and some sites might have a lot of different view modes, it would be nice to control which settings elements are rendered on same_page_preview_form_select (defined on PreviewControlsForm).

Steps to reproduce

Proposed resolution

Add two options to admin/config/content/same-page-preview
1. Checkbox: "Show Settings button" on preview. Enabled by default.
2. Checboxes: "Allow following view modes": and list of view modes used by node entities.
If only one view mode is selected, it probably shouldn't show the select element on same_page_preview_form_select

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

2.1

Component

Code

Created by

🇫🇮Finland sokru

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

Comments & Activities

Production build 0.71.5 2024