Skip to content

Conversation

@jasmussen
Copy link
Contributor

In https://github.com/WordPress/gutenberg/pull/11757/files#diff-9bc45fdf28d434e26e152546f25fd08eR101, a change was introduced to how custom placeholder text works.

Custom placeholder text is basically a duplicate version of the text, which holds the visual placeholder. The height change as linked above was added to make sure the two elements are in sync, height-wise. Which is important for when the placeholder text wraps.

The Button styles this placeholder directly, which means it changes things sligtly in this regard. The long term solution would be to refactor this slightly, so that we don't style this placeholder, but instead style a parent element in the editor. But in the mean time, this PR fixes the current markup and CSS.

Before:

screenshot 2018-11-19 at 10 48 04

After:

screenshot 2018-11-19 at 10 47 06

In https://github.com/WordPress/gutenberg/pull/11757/files#diff-9bc45fdf28d434e26e152546f25fd08eR101, a change was introduced to how custom placeholder text works.

Custom placeholder text is basically a duplicate version of the text, which holds the visual placeholder. The height change as linked above was added to make sure the two elements are in sync, height-wise. Which is important for when the placeholder text wraps.

The Button styles this placeholder directly, which means it changes things sligtly in this regard. The long term solution would be to refactor this slightly, so that we don't style this placeholder, but instead style a parent element in the editor. But in the mean time, this PR fixes the current markup and CSS.
@jasmussen jasmussen added the [Type] Regression Related to a regression in the latest release label Nov 19, 2018
@jasmussen jasmussen added this to the 4.5 milestone Nov 19, 2018
@jasmussen jasmussen self-assigned this Nov 19, 2018
@jasmussen jasmussen requested a review from a team November 19, 2018 09:53
@jasmussen jasmussen mentioned this pull request Nov 19, 2018
4 tasks
Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jasmussen jasmussen merged commit 8585f15 into master Nov 19, 2018
@jasmussen jasmussen deleted the fix/button-variation-preview branch November 19, 2018 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Regression Related to a regression in the latest release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants