Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Update Dashicons component. #10025
This updates the Dashicons component with recent additions, two which are in a PR that's yet to be merged, and one that's needed to exit fullscreen.
Some of the changes in this PR haven't yet been merged into upstream Dashicons, we are waiting for WordPress/dashicons#316 to settle. But in the mean time, this copies the new paths.
referenced this pull request
Sep 19, 2018
For now, because Dashicons is a separate repo, and no-one has had the bandwidth to improve the situation: https://github.com/WordPress/dashicons
"Align pull-left" and "Align pull-right" will be used when Jorge merges #9416.
I sense there's a larger question here; what is a good way to use icons?
Again we are straddling modern with old here, and there's a long term answer and a short term answer.
WordPress uses Dashicons. They have served WordPress well from a time when icon fonts were the way to go, and few big icon sets existed.
However they are starting to show their age in size — screens are larger now — this is tracked here. They are also showing their limitations, not only in how dashicons are built (you allude to this yourself here, but it used to be even worse, with every single icon being added to the icon font manually using font creation tools), but also in the amount of dashicons available.
The block library recently switched to Material icons, which is a vast, continually expanding, open source set. The argument for this was to ensure diversity in the icons, so we didn't end up in a situation where a block author creates a new "Cover Image" block and uses the "Image" icon becuase there's no appropriately diverse alternative to use instead. By leveraging the wealth of icons in Material, this is less of a problem.
Ultimately I would like for all of WordPress to look like it uses only a single consistent icon set. I suspect there will always be a need for a custom set for some of the core icons that Material is likely to never have, like "Align Wide", for example. But visually, stylistically, and in dimensions, the icons should be consistent, and it would be nice if both this core set, and material icons, were as easy for developers to use as possible. Does that mean inline SVGs? Or does it mean a sprite set like we use here? A little of both? Unknown, but an answer will present itself as we continue to iterate, I'm sure.
Hope that was helpful, and thanks for the review!