-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Placeholders: Make dashed style a mixin, and apply across. #43512
Conversation
Size Change: -52 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
df8e925
to
7fd758c
Compare
flex: 1 0 $grid-unit-60; | ||
pointer-events: none; | ||
min-height: $grid-unit-60 - $border-width - $border-width; | ||
|
||
// Dashed placeholder style. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a real nitpick, but do we really need the comment? If it's a general codestyle thing then fine, but otherwise it's kind of duplicative considering it includes the exact same words as the mixin name :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpicks like these are my favorite 👌
packages/base-styles/_mixins.scss
Outdated
@@ -202,6 +202,11 @@ | |||
} | |||
} | |||
|
|||
@mixin dashed-placeholder-style() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might we consider placeholder-style
as the name instead, just incase we decide to change the border style in the future? 🤔
7fd758c
to
fcb3153
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bingo!
Hi, @jasmussen I think this enhancement got regressed after #44190. The dashed border style is missing on the current trunk. |
Visually it was intentional to move forward with the borderless version in 44190 to reduce noise as the placeholders become increasingly useful in patterns. That new style is still in need of some iteration, see #44460, and as it stands, 6.1 should ship with the bordered version. Or is there a different aspect to the regression I was missing? |
Sorry, I wasn't clear. The #44190 also removed borders for Group/Columns appender placeholders. So now, unselected empty Group or Columns isn't visible on the canvas. Screenshot |
Oh that's no good! I'll take a look, thanks. |
What?
As placeholders in the dashed-outline style have received polish in the last week, an opacity differential has stood out:
This PR makes the styles the same across, and extracts the particular dash-style into a mixin so it has a better chance to stay in sync across changes:
Testing Instructions
Test placeholders with the new dashed style, Image, Featured Image, Site Logo, and Columns. Dashed styles should look the same.
I noticed a regression with Group, separate from this PR, which I'll follow up on.