Skip to content

Margin visualizer incorrectly shows inwards #44693

Closed

Description

@jasmussen

Extracting from #44484 (comment): there appears to be an issue with the margin visualization, where if you apply margin to, for example, a group block, the visualization resizes inwards as if to indicate padding, instead of outwards. GIF showing this:

bug

In an older iteration, this worked as intended:

before

It isn't clear when this regression happened. I've seen it work prior to #44323, but it isn't clear that PR introduce the regression either, please see additional context here.

Activity

  1. added
    [Type] Bug
    [Type] Regression
    on Oct 5, 2022
  2. talldan commented on Oct 5, 2022

    @talldan
    Contributor

    It is a bug in 6.1 so I've added it to the project board. It's most noticeable for me when adjusting the margin on the group within TT3's header.

  3. glendaviesnz commented on Oct 5, 2022

    @glendaviesnz
    Contributor

    This seems to be related to the clamp values that TT3 is using for spacing sizes, eg. clamp(7rem, 14vw, 11rem). If I replace these with simple rem values the margin visualiser works as expected. I will take a closer look and see if there is anyway of getting the clamp values into the format that the visualiser can cope with.

  4. self-assigned this
    on Oct 5, 2022
  5. moved this from Triage to In Progress in WordPress 6.1 Editor Taskson Oct 5, 2022
  6. added
    [Status] In Progress
    on Oct 5, 2022
  7. Repository owner moved this from In Progress to Done in WordPress 6.1 Editor Taskson Oct 6, 2022
  8. removed
    [Status] In Progress
    on Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Type] Bug[Type] Regression

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions