-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Page List: Update the icon to demonstrate that the pages are automatically updated #46438
Conversation
Size Change: +657 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
We shouldn't use the block icon for this, IMO. (Also "update" is still a dashicon.) |
To echo @mtias the "update" icon only makes sense when we display the page list inside the navigation tree. But when searching in the inserter users should see a "pages" icon. |
I updated this so that we pass a context to the icon function, which allows us to display different icons in different contexts. This could also be useful for other blocks. |
Nice. I wonder if we should use this icon for it? While we created that icon for reusable blocks, it's implication is that it's a "lightweight synced block", in compareson with the solid version, which is a template part: I took a stab at a bunch of looks to share DNA with that, if we were to create a new one. None of which I like, but sharing for fun: If @SaxonF has an opinion, I'd refer to him. But otherwise, here's the SVG:
What should we call it? Not "synced-block" as above, because reusable blocks might be called that. Perhaps just "sync"? |
Or should this just be a replacement for "update"? |
Oh right, Update exists, it's just using the legacy dashicons vectors. Yes, definitely update that one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works as described. In Nav block offcanvas list view only it appears as synced icon.
I noticed in the main List View it appears as normal. Is that intentional?
The inserter appears as the default icon which is 👍
Last thing (personal preference alert) I don't think the icon looks that great. It's very small and hard to distinguish.
Also from a technical standpoint, we should be thinking of a way to communicate the "Synced" status in a non-visual manner for assistive tech.
…cally updated (#46438) * Page List: Update the icon to demonstrate that the pages are automatically updated * Allow a context to be passed to the block icon
What?
This updates the Page List icon to make it clear that the list of pages are synced with the settings in wp-admin.
Why?
This was originally proposed in #42257.
How?
This simply changes the icon. We need a new icon as this one is ugly. cc @jasmussen
Testing Instructions
3. Check that the icon in the inserter still looks the same.