-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Try a single icon for title blocks #40596
Conversation
Size Change: -763 B (0%) Total Size: 1.23 MB
ℹ️ View Unchanged
|
Nice PR! I think it's good to pull the breaks on the proliferation of title icons like this — there's an argument for every block needing a unique icon, to be sure, but these title variants haven't quite been clear enough on their own. I'd use the T with two lines below, though, rather than the big T. |
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.
I'd be happy to try this. Not because the T + 2 lines icon is necessarily the best, but because the variants of it (A/C/etc) are not good and it'd be good to curtail that design.
Two things, though:
- You're changing the Title icon. I don't know if the T is used anywhere, I don't think it is, but that means it needs a changelog update. https://github.com/WordPress/gutenberg/blob/trunk/packages/icons/CHANGELOG.md
- Since we are consolidating, should we deprecate/delete all the variant icons that get replaced with this? Or is that something we should postpone until later?
I'd be anxious about deleting any icons in the set since we don't know for sure whether they're being used by third parties. |
Indeed. But we've done this before, and I think it important we do that for mistakes made lest they build up over time. In the case of NPM, the change will be noted as breaking in the changelog, and you can then choose not to update, or address the breaking change while doing so. In this case, since the PR is in the "try" category, I'd be happy to try this one without any deprecations, but my main concern there is: if we end up liking this change, eventually we'll want to deprecate the icons and remove them from the library. What do you think? CC: @javierarce |
`commentTitle`, `postTitle`, `queryTitle`, `archiveTitle`. Also updates two small fallback instances where `postTitle` was used. Now uses `postContent` instead.
I removed the icons :) |
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 looks good to me. I like the consistency of just having one simple icon for every title block.
We now have quite a few 'Title' blocks, the icons for which are all variations on a common theme; two horizontal lines accompanied by a letter. They look like this:
The letters already seem a little arbitrary, and I'm not sure how useful they are when we factor in i18n. This isn't a convention that will scale well if/when more 'Title' blocks are added.
It may be best to consolidate into a monolithic Title block, but that's a much bigger item. In this PR I just wanted to see if the usability is harmed if these blocks shared a single icon.
I used the existing
title
icon for convenience, but it may be better to refine the design. For now I'd like to get a sense of whether this is something worth pursuing.