Skip to content
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

CheckboxControl: replace margin overrides with new opt-in prop #45434

Merged
merged 2 commits into from
Nov 3, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix failing snapshots
  • Loading branch information
brookewp committed Nov 2, 2022
commit 99ac2c35dc1d783478712d80c8309c101e802a55
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ exports[`PostPublishPanel should render the post-publish panel if the post is pu
padding: 0;
}

.components-panel__row .emotion-8 {
margin-bottom: inherit;
}

<div>
<div
class="editor-post-publish-panel"
Expand Down Expand Up @@ -141,7 +145,7 @@ exports[`PostPublishPanel should render the post-publish panel if the post is pu
class="components-base-control components-checkbox-control emotion-0 emotion-1"
>
<div
class="components-base-control__field emotion-2 emotion-3"
class="components-base-control__field emotion-8 emotion-3"
>
<span
class="components-checkbox-control__input-container"
Expand Down Expand Up @@ -197,6 +201,10 @@ exports[`PostPublishPanel should render the post-publish panel if the post is sc
padding: 0;
}

.components-panel__row .emotion-8 {
margin-bottom: inherit;
}

<div>
<div
class="editor-post-publish-panel"
Expand Down Expand Up @@ -307,7 +315,7 @@ exports[`PostPublishPanel should render the post-publish panel if the post is sc
class="components-base-control components-checkbox-control emotion-0 emotion-1"
>
<div
class="components-base-control__field emotion-2 emotion-3"
class="components-base-control__field emotion-8 emotion-3"
>
<span
class="components-checkbox-control__input-container"
Expand Down Expand Up @@ -345,10 +353,6 @@ exports[`PostPublishPanel should render the pre-publish panel if post status is
box-sizing: inherit;
}

.emotion-2 {
margin-bottom: calc(4px * 2);
}

.components-panel__row .emotion-2 {
margin-bottom: inherit;
}
Expand Down Expand Up @@ -472,10 +476,6 @@ exports[`PostPublishPanel should render the pre-publish panel if the post is not
box-sizing: inherit;
}

.emotion-2 {
margin-bottom: calc(4px * 2);
}

.components-panel__row .emotion-2 {
margin-bottom: inherit;
}
Expand Down Expand Up @@ -641,10 +641,6 @@ exports[`PostPublishPanel should render the spinner if the post is being saved 1
box-sizing: inherit;
}

.emotion-8 {
margin-bottom: calc(4px * 2);
}

.components-panel__row .emotion-8 {
margin-bottom: inherit;
}
Expand Down