Problem/Motivation

The summary::marker does not display when the element is set to display:block (see https://github.com/timarney/react-faq/issues/29). This is coming from the #layout-builder-modal summary CSS provided by Layout Builder Modal.

Steps to reproduce

Have a summary showing up in Layout Builder Modal with the Seven theme (not Bartik, which is the default) using FF, and the caret will be missing

Proposed resolution

Add a polished version of the sugested change at https://www.drupal.org/project/drupal/issues/2886904#comment-12568251:

@-moz-document url-prefix() {
  #layout-builder-modal summary {
    display: list-item;
  }
}

Remaining tasks

User interface changes

API changes

Data model changes

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

lreynaga created an issue. See original summary.

mark_fullmer’s picture

Status: Active » Needs work

Thanks for the report and the proposed fix, lreynaga!

I can confirm that I can reproduce the issue, and I agree that it should be fixed.

As far as the implementation proposed above and in the merge request, I have two suggestions:
1. The change should go in details.scss rather than elements.scss
2. I think that the addition of display: list-item; should work for all browsers, so I'd prefer it to be a general declaration, rather than scoped only to @-moz-document url-prefix() . This should be verified in Chrome, Safari, and Edge, however.

lreynaga’s picture

Status: Needs work » Needs review
StatusFileSize
new539.45 KB

Thank you for the input mark_fullmer.

I have undone the changes previously added and made the adjustment in the details.scss file and re-run the node-sass script.

FWIW, I have verified the change is consistently being pulled in FF, Chrome and Safari, I am having issues while installing Edge on Mac, so I'll let reviewers cover that for me if possible. I'll keep trying to install and report back my findings there, but consistency so far makes me think it will work fine:

css proof of caret displaying

lreynaga’s picture

Issue summary: View changes

  • mark_fullmer committed f861709 on 8.x-1.x authored by lreynaga
    Issue #3210017 by lreynaga, mark_fullmer: Firefox specific: expand caret...
mark_fullmer’s picture

Status: Needs review » Reviewed & tested by the community

I checked this in MS Edge and confirmed that while the existing code is not problematic, the addition of display:list-item doesn't introduce any regressions, and I still maintain that it's better to use that consistently across all browsers rather than scoping this to Firefox with @-moz-document url-prefix()

Thanks for the fix!

mark_fullmer’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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