Make WordPress Core

Opened 6 years ago

Last modified 4 weeks ago

#46215 new defect (bug)

Twenty Nineteen: Aligning table to center not working on front end

Reported by: iamjaydip's profile iamjaydip Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 5.0.3
Component: Bundled Theme Keywords: has-patch has-screenshots changes-requested
Focuses: Cc:

Description

When i add Table block in editor and assign Alignment "Center" from the toolbar it's working properly in backend but it's not working properly in frontend.

Attachments (6)

46215.gif (1.5 MB) - added by iamjaydip 6 years ago.
46215.diff (600 bytes) - added by iamjaydip 6 years ago.
66-editor--table-center-alignment.png (13.1 KB) - added by poena 8 weeks ago.
Table block with center alignment, editor view
66-front-table-center-alignment.png (20.2 KB) - added by poena 8 weeks ago.
Table block with center alignment, front view
SCR-20240811-ncdq.png (70.3 KB) - added by karmatosed 4 weeks ago.
Centre aligning table
SCR-20240811-ncfi.png (69.3 KB) - added by karmatosed 4 weeks ago.
Front view

Download all attachments as: .zip

Change History (14)

@iamjaydip
6 years ago

@iamjaydip
6 years ago

#1 @laurelfulford
6 years ago

  • Keywords needs-testing added
  • Milestone changed from Awaiting Review to Future Release
  • Summary changed from Table Alignment not working at frontend to Twenty Nineteen: Aligning table to center not working on front end

Thanks for this report, @iamjaydip!

I can see this issue, too.

#2 @pooja1210
16 months ago

Hi,

Patch report for - https://core.trac.wordpress.org/attachment/ticket/46215/46215.diff

Environment:
WordPress: v6.2.2
Theme: Twenty Nineteen
OS: Mac
Browser: Chrome

Steps to Reproduce:

  1. Activate the Twenty Nineteen theme and add the table block
  2. Change the position to Center.
  3. Observe the table on frontend.

Expected Result: Table should be visible in center ☑️

Before Screenshot:
Backend: https://prnt.sc/O3HSGygRbzvU
Frontend: https://prnt.sc/PRC2HvrSlDLq

After Screenshot:
Backend: https://prnt.sc/O3HSGygRbzvU
Frontend: https://prnt.sc/U-0d9Yz38Cxj

Thanks!

#3 @itpathsolutions
5 months ago

#60939 was marked as a duplicate.

#4 @karmatosed
3 months ago

This is applying not in the Sass and as a result on compile it is removing. I would recommend a refresh at this point looking to bring this into the Sass files and then we can compile from there.

#5 @karmatosed
3 months ago

  • Keywords changes-requested added

#6 @karmatosed
2 months ago

  • Keywords needs-testing removed

#7 @poena
8 weeks ago

I am testing the table block with Twenty Nineteen version Version: 2.9 on WordPress 6.6-RC4-58723
and I am not able to reproduce the issue.

Version 0, edited 8 weeks ago by poena (next)

@poena
8 weeks ago

Table block with center alignment, editor view

@poena
8 weeks ago

Table block with center alignment, front view

#8 @karmatosed
4 weeks ago

I think the issue here is the alignment of the entire table block not the text unless I am mistaken. I can replicated the problem but only when centre aligning the entire block, not just the text.

To recreate:

  1. Add a table block.
  2. Centre align the entire table block.
  3. It won't show on front as centre aligned or the same as the editor.

@karmatosed
4 weeks ago

Centre aligning table

@karmatosed
4 weeks ago

Front view

Note: See TracTickets for help on using tickets.