Skip to content

Commit

Permalink
Remove unused CSS from LinkControl Apply button (#48431)
Browse files Browse the repository at this point in the history
* Remove unused classname

* Reinstate className
  • Loading branch information
getdave authored Mar 2, 2023
1 parent 4e0a655 commit 98b58d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/link-control/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ function LinkControl( {
<Button
variant="primary"
onClick={ handleSubmit }
className="xblock-editor-link-control__search-submit"
className="block-editor-link-control__search-submit"
disabled={ currentInputIsEmpty } // Disallow submitting empty values.
>
{ __( 'Apply' ) }
Expand Down
4 changes: 0 additions & 4 deletions packages/block-editor/src/components/link-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ $preview-image-height: 140px;
order: 20;
}

.components-button .block-editor-link-control__search-submit .has-icon {
margin: -1px;
}

.block-editor-link-control__search-results-wrapper {
position: relative;
margin-top: -$grid-unit-20 + 1px;
Expand Down

1 comment on commit 98b58d9

@github-actions
Copy link

Choose a reason for hiding this comment

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

Flaky tests detected in 98b58d9.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4316533829
📝 Reported issues:

Please sign in to comment.