Opened 14 months ago
Last modified 14 months ago
#59263 new defect (bug)
Twenty Nineteen: File block does not respect center alignment setting
Reported by: | truptikanzariya | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.0 |
Component: | Bundled Theme | Keywords: | needs-patch |
Focuses: | css | Cc: |
Description
In the Twenty Nineteen Theme, the File Block element may not be centered correctly on the front end of the website. This misalignment can result in a visually uneven layout.
For a better understanding, I have attached a video.
https://www.awesomescreenshot.com/video/20417359?key=343f6fb217d9d85baa05a68bcd238f6a
Thank you.
Attachments (3)
Change History (5)
@
14 months ago
On the front end, text links are centered within the content area, but Download links are not centered
#1
@
14 months ago
- Component changed from Themes to Bundled Theme
- Focuses css added
- Summary changed from The Twenty Nineteen Theme: File Block is not centered on the front end. to Twenty Nineteen: File Block can only center the text link
- Version changed from trunk to 5.0
Thanks for the report!
The Center alignment setting apparently never worked on the Download link, when it is included in the File block, with Twenty Nineteen. The Download link would need to honor the Center setting in both the editor and the front end, and the text link would need centering within the editor too.
The PDF embed is the full block width, so it does not need centering. Twenty Nineteen aligns this block with paragraphs and other content blocks, not according to the page (see #58441).
Centered file blocks with Twenty Nineteen in WordPress 6.3 with the non-framed editor