Skip to content

Commit

Permalink
MediaReplaceFlow: fix styling for LinkControl (#47949)
Browse files Browse the repository at this point in the history
* MediaReplaceFlow: fix styling for LinkControl

* Adjust width of popover

* Fix missing focus outline
  • Loading branch information
brookewp committed Mar 1, 2023
1 parent 245617a commit 00e25b4
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,22 @@
}

.block-editor-link-control {
width: 220px; // Hardcoded width avoids resizing of control when switching between preview/edit.
width: 300px; // Hardcoded width avoids resizing of control when switching between preview/edit.

.block-editor-url-input {
padding: 0; // Cancel unnecessary default 1px padding in this case.
margin: 0; // Reset default LinkControl margins.
}

.components-base-control .components-base-control__field {
margin-bottom: 0;
}

.block-editor-link-control__search-item-title {
max-width: 180px;
.block-editor-link-control__search-item-title,
.block-editor-link-control__search-item-info {
max-width: 200px;
white-space: nowrap;
}

.block-editor-link-control__search-item-info {
white-space: nowrap;
.block-editor-link-control__tools {
justify-content: flex-end;
padding: $grid-unit-20 var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus);
}

.block-editor-link-control__search-item.is-current {
Expand Down

0 comments on commit 00e25b4

Please sign in to comment.