Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avatar Component: Align Right does not work on block themes #67493

Open
3 of 6 tasks
Mayank-Tripathi32 opened this issue Dec 2, 2024 · 0 comments · May be fixed by #67494
Open
3 of 6 tasks

Avatar Component: Align Right does not work on block themes #67493

Mayank-Tripathi32 opened this issue Dec 2, 2024 · 0 comments · May be fixed by #67494
Assignees
Labels
[Block] Avatar Affects the Avatar Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@Mayank-Tripathi32
Copy link
Contributor

Description

related issue #67419

The "Align Right" option for the Avatar component does not function correctly when the "Link to Profile" option is enabled in block-based themes such as Twenty Twenty-Four and Twenty Twenty-Five. However, it works as expected in classic themes like Twenty Twenty-One.

Expected Behavior

  • The Avatar component should align to the right of its container, respecting the selected "Align Right" setting, regardless of the theme.

Actual Behavior

  • In block-based themes (Twenty Twenty-Four, Twenty Twenty-Five), the Avatar component does not align to the right and remains in its default position.
  • In the classic theme (Twenty Twenty-One), the alignment works as expected. (except the issue in resolve avatar block alignment issue. #67419)

Step-by-step reproduction instructions

  1. Activate a block-based theme, e.g., Twenty Twenty-Four or Twenty Twenty-Five.
  2. Add the Avatar component to a post or page using the block editor.
  3. Enable the "Link to Profile" option in the Avatar component settings.
  4. Set the alignment option to "Align Right".
  5. Save and preview the post/page.

Screenshots, screen recording, code snippet

Screen.Recording.2024-12-02.at.10.54.01.PM.mov
.wp-block-avatar.alignright {
	.components-resizable-box__container {
		 float: right;
	}
}

Adding following css fixes the issue. Will be opening PR shortly.

Environment info

  • WP 6.7.1
  • Gutenberg Version 19.8.0-rc.1
  • Mac M2 (macos 14.5)
  • Chrome

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@Mayank-Tripathi32 Mayank-Tripathi32 added the [Type] Bug An existing feature does not function as intended label Dec 2, 2024
@Mayank-Tripathi32 Mayank-Tripathi32 changed the title Avatar Component: Align Right does not work on block themes when using link to profile option Avatar Component: Align Right does not work on block themes Dec 2, 2024
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Dec 2, 2024
@carolinan carolinan added the [Block] Avatar Affects the Avatar Block label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Avatar Affects the Avatar Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants