Repository navigation
Admin: replace dashicons in admin bar and sidebar with @wordpress/icons #12270
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
Closed
+1,270
−250
Closed
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
2e8ad54
Admin: replace dashicons in admin bar and sidebar with @wordpress/icons
fushar dd1533b
Use the new core-admin/ icon collection
fushar ca70fe4
Simplify CSS by setting the color to the div
fushar 2cecbcb
Address comments
fushar d2ebd38
Revert icon conditional rendering in site name node so that live upda…
fushar 159d96b
Document registered icon names as valid menu icon values
t-hamano 028c1af
Restore page-specific menu icon fallback when menu_icon is not a string
t-hamano b50bbdd
Remove more CSS
fushar de311e6
Resize mobile icon size to 32px
fushar 197b720
Keep Dashicons menu_icon for built-in post types
fushar 84802ec
Scope to .ab-icon.svg-icon svg
fushar eb4356e
Use svg icons in wp-admin/user/menu.php as well
fushar 5322e20
Build default blavatar once
fushar c0e068f
Extract is_admin() || ! current_user_can( 'read' )
fushar 74b4407
Fix avatar fallback svg icon on mobile
fushar 155b556
Restore deleted blavatar rule on mobile
fushar 12ce509
Don't call is_registered() when checking icon
fushar bcfdb29
Render empty icon wrapper when not found
fushar a75644e
Add icon argument in add_node
fushar f2f1ae0
Revert "Restore deleted blavatar rule on mobile"
fushar 72d8005
Keep dashicons in menu array, add helper, and call _doing_it_wrong if…
fushar f74c526
Guard admin bar SVG icons from third-party styles
fushar 2bc190f
Don't just add .svg-icon to existing rules just to win specificity
fushar 094bbe8
Better dashicon mapping code which emphasize backompat
fushar 47976e7
Apply backcompat
fushar 85988fa
Remove unused backcompat code
fushar 15cb2ce
Update the SVG color override's handle to admin-menu instead
fushar 8e764b0
Also color inline SVG icons during live preview
fushar e6cb1da
Fall back sidebar menu icon to text color when $icons is not passed
fushar 1ffe5dd
wp_is_icon_name -> wp_is_valid_icon_name
fushar fc08a7f
Address Aki's comments
fushar 6c3fc8b
Flip search icon on LTR
fushar cbdea15
Update docblock examples to use core-admin/ instead
fushar 0c05463
Strip empty span for all core nodes
fushar fa3caad
Merge remote-tracking branch 'upstream/trunk' into admin-wp-icons
fushar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.