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

Admin bar edit actions submenu has icons, awkward indentation #1259

Open
ryelle opened this issue Feb 29, 2024 · 0 comments
Open

Admin bar edit actions submenu has icons, awkward indentation #1259

ryelle opened this issue Feb 29, 2024 · 0 comments

Comments

@ryelle
Copy link
Contributor

ryelle commented Feb 29, 2024

Screenshot

WordCamp site (broken) WordPress Docs (correct)
Screenshot 2024-02-18 at 4 08 54 PM Screenshot 2024-02-29 at 12 11 11 PM

I tracked this down to the admin bar customization in wporg-mu-plugins. The same code applies in both places, but the WordPress.org sites have some extra CSS to hide the icons & fixes the indentation. This is not loaded on individual WordCamp sites because it's bundled in with the global header CSS.

#wpadminbar .ab-sub-wrapper #wp-admin-bar-edit-actions-default .ab-item::before {
  content: "" !important;
}

This bit of CSS could probably be inlined in the admin-bar.php file, so it applies regardless of the global header block. The rest of the CSS in admin-bar.pcss updates the styles to match the global header, not necessary on WordCamp sites.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 To do
Development

No branches or pull requests

2 participants