Skip to content

Commit

Permalink
Remove border from Global Styles previews (#44556)
Browse files Browse the repository at this point in the history
* Remove border from global styles preview.

* Fix spacing.

* Add missing semicolon

Co-authored-by: Aki Hamano <54422211+t-hamano@users.noreply.github.com>

Co-authored-by: Aki Hamano <54422211+t-hamano@users.noreply.github.com>
  • Loading branch information
2 people authored and michalczaplinski committed Oct 3, 2022
1 parent 2159bbb commit 14d6500
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/edit-site/src/components/global-styles/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ const StylesPreview = ( { label, isFocused } ) => {
)
.slice( 0, 2 );

// Reset leaked styles from WP common.css and remove main content layout padding.
// Reset leaked styles from WP common.css and remove main content layout padding and border.
const editorStyles = useMemo( () => {
if ( styles ) {
return [
...styles,
{
css: 'body{min-width: 0;padding: 0;}',
css: 'body{min-width: 0;padding: 0;border: none;}',
isGlobalStyles: true,
},
];
Expand Down

0 comments on commit 14d6500

Please sign in to comment.