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 checkbox alignment issues in options and block manager modals (#16860) #16863

Merged
merged 9 commits into from
Aug 9, 2019
2 changes: 1 addition & 1 deletion packages/components/src/checkbox-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ svg.dashicon.components-checkbox-control__checked {
pointer-events: none;
}

@media screen and ( max-width: 728px ) {
@media screen and ( max-width: 600px ) {
kjellr marked this conversation as resolved.
Show resolved Hide resolved
.components-checkbox-control__input[type="checkbox"] {
width: 25px;
height: 25px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
top: 0;
padding: $panel-padding 0;
background-color: $white;
z-index: 1;
kjellr marked this conversation as resolved.
Show resolved Hide resolved

.components-base-control__field {
margin-bottom: 0;
Expand Down Expand Up @@ -86,6 +87,14 @@
align-items: center;
display: flex;
margin: 0;
svg.dashicon.components-checkbox-control__checked {
bottom: 5px;
left: -37px;
@include break-small() {
bottom: 10px;
left: -27px;
}
}
}

.components-modal__content & input[type="checkbox"] {
Expand Down
6 changes: 6 additions & 0 deletions packages/edit-post/src/components/options-modal/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
align-items: center;
display: flex;
margin: 0;
svg.dashicon.components-checkbox-control__checked {
bottom: 0;
@include break-small() {
bottom: 5px;
}
}
}

&.components-base-control + &.components-base-control {
Expand Down