Problem/Motivation

Before:
Before patch

After:
After patch

Steps to reproduce

Apply changes in MR

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#3 after.png16.13 KBrealityloop
#3 before.png16.69 KBrealityloop
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

realityloop created an issue. See original summary.

realityloop’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new16.69 KB
new16.13 KB
anybody’s picture

+1, we can also confirm this issue and will have a look at the patch.

@thomas.frobieter could you be so kind?

thomas.frobieter’s picture

Status: Needs review » Reviewed & tested by the community

Yeah, looks good to me. Thanks!

justin2pin’s picture

Status: Reviewed & tested by the community » Needs review

Thanks for this. It's not immediately clear why the new CSS rule is necessary, though, since .layout-select__item .option is targeted just a few lines above. Would you mind sharing what theme you are using? Your theme must be targeting .form-item__label.option, correct? (FWIW, Drupal CS complains about overly specific selectors when using .form-item__label.option, which is why this was changed. Not a deal breaker.)

thomas.frobieter’s picture

Its: https://www.drupal.org/project/gin (based on Claro)

Claro sets:

.form-item__label.option {
  display: inline;
  font-weight: normal;
}

in /core/themes/claro/css/components/form.css

What overrides:

.layout-select__item .option {
  display: flex;
  padding: 10px;
    padding-bottom: 10px;
  outline: 1px solid #ccc;
}

from /modules/contrib/layout_paragraphs/css/layout-select.css

justin2pin’s picture

Status: Needs review » Fixed

Got it, thanks. Let's make the existing rule more specific, rather than adding a new one. Latest MR tested with Claro - I'm going to merge this.

Thanks everybody.

pp.panatom’s picture

looks like similar adjustment is needed for the checked option, otherwise it wont highlight the selected state

.layout-select__item input:checked + label.form-item__label

thomas.frobieter’s picture

Status: Fixed » Needs work

justin2pin’s picture

Status: Needs work » Fixed

Should be all set now. Thanks all.

Status: Fixed » Closed (fixed)

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