Skip to content

Commit

Permalink
Use padding trick
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jul 27, 2020
1 parent 1c1f109 commit 03edac1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/editor/src/components/post-taxonomies/style.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
.editor-post-taxonomies__hierarchical-terms-list {
max-height: 14em;
overflow: auto;

// Extra left padding prevents checkbox focus borders from being cut off.
padding-left: 2px;
margin-left: -$border-width * 4 - $border-width-focus;
padding-left: $border-width * 4 + $border-width-focus;
margin-top: -$border-width * 4 - $border-width-focus;
padding-top: $border-width * 4 + $border-width-focus;
}

.editor-post-taxonomies__hierarchical-terms-choice {
Expand Down

0 comments on commit 03edac1

Please sign in to comment.