You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TT3 Style Variations show a scrollbar for one variation #44515
I think a developer may need design feedback on the right way to fix this, so I've added the label.
Should the preview show the variation's border? I suppose that's possible but it might be difficult to account for any border and still fit the contents of the preview neatly in the rectangle.
Possibly a better option would for the border not to be shown, the preview iframe could have a reset for any border (as well as margin if that isn't already in place).
Possibly a better option would for the border not to be shown, the preview iframe could have a reset for any border (as well as margin if that isn't already in place).
Yeah I agree with this approach. Likely the easiest to implement and the best way to ensure consistency in the variation previews.
Activity
ndiego commentedon Sep 27, 2022
Yes I can confirm. The reason is that variation has a site border, which is reflected in the Global Styles preview.
talldan commentedon Sep 28, 2022
I think a developer may need design feedback on the right way to fix this, so I've added the label.
Should the preview show the variation's border? I suppose that's possible but it might be difficult to account for any border and still fit the contents of the preview neatly in the rectangle.
Possibly a better option would for the border not to be shown, the preview iframe could have a reset for any border (as well as margin if that isn't already in place).
ndiego commentedon Sep 28, 2022
Yeah I agree with this approach. Likely the easiest to implement and the best way to ensure consistency in the variation previews.
t-hamano commentedon Sep 28, 2022
I was just investigating this issue as well, and I think
useResizeObserveris not getting a width that takes borders into account.gutenberg/packages/edit-site/src/components/global-styles/preview.js
Lines 98 to 109 in cbaa184
I also agree with not displaying borders in the preview, as a very thick border would squash the preview area.