Skip to content

Snackbar: CSS fix for positioning in large screens#75364

Closed
im3dabasia wants to merge 1 commit intoWordPress:trunkfrom
im3dabasia:try/75350
Closed

Snackbar: CSS fix for positioning in large screens#75364
im3dabasia wants to merge 1 commit intoWordPress:trunkfrom
im3dabasia:try/75350

Conversation

@im3dabasia
Copy link
Contributor

@im3dabasia im3dabasia commented Feb 10, 2026

What?

Closes #75350

Fixes the success snackbar positioning on the Fonts screen so it appears above the sidebar instead of behind it when saving via keyboard shortcut.

Why?

When saving font changes using ⌘S / Ctrl+S, the success snackbar is rendered behind the sidebar, making it partially or fully hidden.

How?

Adjusts the snackbar positioning so it is correctly visible on bigger viewports, ensuring it is not overlapped by the sidebar.

Testing Instructions for Keyboard

  1. Go to Appearance → Fonts
  2. Change any font setting
  3. Press ⌘S (macOS) or Ctrl+S (Windows)
  4. Confirm the modal
  5. Verify the success snackbar is fully visible and not hidden behind the sidebar

Screenshots or screencast

Screencast

Screen.Recording.2026-02-10.at.11.37.49.AM.mov

Screenshots

Before After
Screenshot 2026-02-10 at 11 41 02 AM image

@im3dabasia im3dabasia added [Type] Bug An existing feature does not function as intended [Feature] Font Library labels Feb 10, 2026
@im3dabasia im3dabasia marked this pull request as ready for review February 12, 2026 03:54
@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: juanfra <juanfra@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Member

@juanfra juanfra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @im3dabasia! The fix does solve the visible issue, but I think it's working around the problem rather than addressing the root cause.

The snackbar uses position: fixed, so it's positioned relative to the viewport (not the .boot-layout container). Adding right: 0 only on small screens avoids the overlap with the admin sidebar on larger viewports, but it also means the snackbar still doesn't have proper horizontal bounds above that breakpoint.

The pattern we use elsewhere is to set right: 0 unconditionally and then use the editor-left mixin to offset left based on the admin sidebar state. It'd look something like this:

.boot-layout .components-editor-notices__snackbar {
	position: fixed;
	right: 0;
	bottom: 16px;
	padding-left: 16px;
	padding-right: 16px;
}

@include editor-left(".boot-layout .components-editor-notices__snackbar");

@juanfra
Copy link
Member

juanfra commented Feb 20, 2026

Closing as the snackbar is center aligned now after #75294.

@juanfra juanfra closed this Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Font Library [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Snackbar positioning error when saving in fonts screen via keyboard.

2 participants