Make WordPress Core

Opened 9 months ago

Closed 5 weeks ago

#58989 closed defect (bug) (reported-upstream)

Avatar block alignment is not working well in some themes

Reported by: pitamdey's profile pitamdey Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: css Cc:

Description

Avatar block alignment is not working in some themes like Twenty Twenty-one, Twenty nineteen, Twenty Seventeen and Twenty Sixteen but it is working fine with Twenty Twenty-two & Twenty Twenty-Three.
The Main issue is that centre align is not reflected in editor side
Here is a Video of the issue along with how it works :
https://drive.google.com/file/d/1YIng2VrJY9Zt1dgqD-Pg7_Lps4LaDoIW/view?usp=sharing

Change History (5)

#1 @mikinc860
9 months ago

@pitamdey reference video is private. Please make it public so we can access and regenerate the issue.

#2 @pitamdey
9 months ago

Hi @mikinc860
I have made it public.
Thanks

Last edited 9 months ago by pitamdey (previous) (diff)

#3 @sabernhardt
9 months ago

  • Component changed from Bundled Theme to Editor
  • Keywords move-to-github close added

Thanks for the report!

This is an editor problem, so it should be fixed in the Gutenberg plugin first. Please report it on GitHub:
https://github.com/WordPress/gutenberg/issues/new/choose

GB39794 added margin: 0 auto to an Avatar block element when centering it, but the .wp-block-avatar container does not get the .aligncenter class. It needs a different CSS selector (or it needs to add alignment classes).

#4 @poena
3 months ago

#60425 was marked as a duplicate.

#5 @sabernhardt
5 weeks ago

  • Keywords move-to-github close removed
  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

Thanks for opening the issue on GitHub! Discussion can continue on
https://github.com/WordPress/gutenberg/issues/56706

Note: See TracTickets for help on using tickets.