Problem/Motivation

We are trying to create a 'Section' component that only has a one column layout.

The one column layout is displayed by default and must be checked.

Steps to reproduce

Create a paragraph with only one layout

Proposed resolution

Hide 'Layout' tab when there is only one available layout for a component

Remaining tasks

Provide MR
Review MR
Commit MR

User interface changes

Components with only one layout will no longer display the layout tab,

API changes

N/A

Data model changes

N/A

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:

Comments

jrockowitz created an issue. See original summary.

jrockowitz’s picture

jrockowitz’s picture

Status: Active » Needs review
jrockowitz’s picture

Issue summary: View changes
StatusFileSize
new140.36 KB
sethhill’s picture

Status: Needs review » Reviewed & tested by the community

Tested against 2.1.x and this looks good to merge. Setting to RTBC.

  • sethhill committed 6675de5a on 2.1.x authored by jrockowitz
    Issue #3468995 by jrockowitz, sethhill: Hide 'Layout' tab when there is...
sethhill’s picture

Status: Reviewed & tested by the community » Fixed

  • sethhill committed 6675de5a on 2.2.x authored by jrockowitz
    Issue #3468995 by jrockowitz, sethhill: Hide 'Layout' tab when there is...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.