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

Fix checkboxes for postmeta. #18108

Merged
merged 2 commits into from
Oct 25, 2019
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
18 changes: 18 additions & 0 deletions packages/edit-post/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,24 @@ body.block-editor-page {
.components-popover,
.components-modal__frame {
@include reset;

// Until checkboxes WordPress-wide are updated to match the new style,
// checkboxes used in metaboxes have to be slightly unstyled here.
// @todo: remove this entire rule once checkboxes are the same everywhere.
// See: https://github.com/WordPress/gutenberg/issues/18053
.postbox-container input[type="checkbox"],
.postbox-container input[type="radio"] {
border: $border-width solid $dark-gray-300;

&:checked {
background: $white;
border-color: $dark-gray-300;
}

&::before {
margin: -3px -4px;
}
}
youknowriad marked this conversation as resolved.
Show resolved Hide resolved
}

.block-editor__container {
Expand Down