Skip to content

Commit be6a8fd

Browse files
jasmussenhypest
authored andcommitted
Fix checkboxes for postmeta. (#18108)
1 parent c4eb0ef commit be6a8fd

File tree

1 file changed

+19
-0
lines changed
  • packages/edit-post/src/components/meta-boxes/meta-boxes-area

1 file changed

+19
-0
lines changed

packages/edit-post/src/components/meta-boxes/meta-boxes-area/style.scss

+19
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,25 @@
8181
.is-hidden {
8282
display: none;
8383
}
84+
85+
86+
// Until checkboxes WordPress-wide are updated to match the new style,
87+
// checkboxes used in metaboxes have to be slightly unstyled here.
88+
// @todo: remove this entire rule once checkboxes are the same everywhere.
89+
// See: https://github.com/WordPress/gutenberg/issues/18053
90+
.postbox-container .postbox input[type="checkbox"],
91+
.postbox-container .postbox input[type="radio"] {
92+
border: $border-width solid $dark-gray-300;
93+
94+
&:checked {
95+
background: $white;
96+
border-color: $dark-gray-300;
97+
}
98+
99+
&::before {
100+
margin: -3px -4px;
101+
}
102+
}
84103
}
85104

86105
.edit-post-meta-boxes-area__clear {

0 commit comments

Comments
 (0)