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

Link Control: fix setting rich-text placeholder #18488

Merged
merged 2 commits into from
Nov 13, 2019

Conversation

retrofox
Copy link
Contributor

@retrofox retrofox commented Nov 13, 2019

Description

We need to make stronger the CSS rule which overrides the styles for the <URLInput > block properly. It's doable prefixing the rule with the .components-popover CSS class.

After this change 8e13521 is mandatory to remove the > from the CSS rule to make it work, since it is not a straightforward child of the CSS class anymore.

How has this been tested?

Testing with a navigation menu, confirm that the link popover is broken when the item doesn't have defined a link:

Applying this change, the popover should look good again:

Screenshots

Types of changes

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.

@retrofox retrofox added [Feature] List View Menu item in the top toolbar to select blocks from a list of links. [Block] Navigation Affects the Navigation Block labels Nov 13, 2019
@retrofox retrofox requested a review from obenland November 13, 2019 20:10
@retrofox retrofox requested review from getdave and removed request for youknowriad November 13, 2019 20:33
After this change 8e13521 is mandatory to remove the `>` from the CSS rule to make it work, since it is not a straightforward child of the CSS class anymore.
@retrofox retrofox force-pushed the update/link-popover-fix-visual-bug branch from 80a9039 to ecad058 Compare November 13, 2019 20:56
@retrofox retrofox changed the title Link Control: make popover CSS rule stronger Link Control: fix setting rich-text placeholder Nov 13, 2019
Copy link
Member

@obenland obenland left a comment

Choose a reason for hiding this comment

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

Fixes that bug for me

@retrofox retrofox merged commit ddb9f99 into master Nov 13, 2019
@retrofox retrofox deleted the update/link-popover-fix-visual-bug branch November 13, 2019 22:50
@youknowriad youknowriad added this to the Gutenberg 7.0 milestone Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Navigation Affects the Navigation Block [Feature] List View Menu item in the top toolbar to select blocks from a list of links.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants