Skip to content

Commit

Permalink
Link Control: fix setting rich-text placeholder (#18488)
Browse files Browse the repository at this point in the history
* link-control: remove `>` from CSS rule
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.

* navigation-menu-item: placeholder as inline-block
  • Loading branch information
retrofox authored Nov 13, 2019
1 parent 0e15490 commit ddb9f99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/block-editor/src/components/link-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
min-width: $modal-min-width;
}

// LinkControl popover.
.block-editor-link-control__search .block-editor-link-control__search-input {
// Specificity overide
&.block-editor-link-control__search-input > input[type="text"] {
// Specificity override.
&.block-editor-link-control__search-input input[type="text"] {
width: calc(100% - #{$grid-size-large*2});
display: block;
padding: 11px $grid-size-large;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
}

.block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus) [data-rich-text-placeholder]::after {
display: inherit;
display: inline-block;
}
}

Expand Down

0 comments on commit ddb9f99

Please sign in to comment.