Skip to content

Commit

Permalink
File: Add center alignment editor class for classic themes (WordPress…
Browse files Browse the repository at this point in the history
…#59975)


Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: sabernhardt <[email protected]>
  • Loading branch information
4 people authored and carstingaxion committed Mar 27, 2024
1 parent 4523158 commit 6195fc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-library/src/file/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
// Stop file block from collapsing when floated.
height: auto;
}
.wp-block[data-align="center"] > & {
text-align: center;
}

display: flex;
flex-wrap: wrap;
Expand Down

0 comments on commit 6195fc3

Please sign in to comment.