Skip to content

Commit

Permalink
Fix Safari misaligning width/height placeholders
Browse files Browse the repository at this point in the history
Setting an explicit line height on the width and height text fields
prevents a small visual bug in Safari where the fields flicker when a
number is typed in.
  • Loading branch information
noisysocks committed Apr 3, 2018
1 parent 252ad41 commit dea294d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions blocks/library/image/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@
.blocks-image-dimensions__width,
.blocks-image-dimensions__height {
margin-bottom: 0.5em;

// Fix the text and placeholder text being misaligned in Safari
input {
line-height: 1.25;
}
}

.blocks-image-dimensions__width {
Expand Down

0 comments on commit dea294d

Please sign in to comment.