-
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
Update UI to better indicate that a block is reusable #5720
Conversation
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.
Visually this seems a little unbalanced with a caption. I think though it's ok to have as not all pictures will have one. I think a solid default over having it work specifically for captions is probably best. Let's get it in and iterate if it continues to feel weird.
components/dashicon/index.js
Outdated
@@ -892,7 +892,9 @@ export default class Dashicon extends wp.element.Component { | |||
height={ size } | |||
viewBox="0 0 20 20" | |||
> | |||
<path d={ path } /> | |||
<path d={ path }> | |||
{ title && <title>{ title }</title> } |
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.
Hmm, I don't know enough about whether this is something we actually want. Can you explain context for adding this title?
cc @afercia
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.
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.
Should we use the <Tooltip />
component instead for consistency?
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.
👌 done.
Make it more obvious that a block is reusable by: - Making reusable blocks *always* have a dashed outline - Badging the block with an icon in the bottom right corner
6de68cc
to
7164afb
Compare
Good catch. #5810 hides the indicator in the preview component. |
Fixes #5225.
Makes it more obvious that a block is reusable by: