Make WordPress Core

Opened 3 years ago

Closed 2 years ago

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

Avatar block alignment is not working well in some themes

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

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
3 years ago

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

#2 @pitamdey
3 years ago

Hi @mikinc860
I have made it public.
Thanks

Last edited 3 years ago by pitamdey (previous) (diff)

#3 @sabernhardt
3 years ago

  • Component Bundled ThemeEditor
  • 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 years ago

#60425 was marked as a duplicate.

#5 @sabernhardt
2 years ago

  • Keywords move-to-github close removed
  • Milestone Awaiting Review
  • Resolutionreported-upstream
  • Status newclosed

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.