Skip to content

Commit

Permalink
Added wrapper element for RichText in File block (#50607)
Browse files Browse the repository at this point in the history
* Added wrapper element for RichText this will make editor able find focus on RichText even if there is no value

* Removed wrapper div from RichText element

* Added display: inline-block declaration for non-button links inside file block
  • Loading branch information
n2erjo00 committed May 19, 2023
1 parent d746e55 commit ce29b86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/block-library/src/file/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@

a {
min-width: 1em;

&:not(.wp-block-file__button) {
display: inline-block;
}
}

.wp-block-file__button-richtext-wrapper {
Expand Down

1 comment on commit ce29b86

@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 ce29b86.
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/5024123850
📝 Reported issues:

Please sign in to comment.