-
Notifications
You must be signed in to change notification settings - Fork 384
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
Improve AMP preview button in WP 5.4 and with Gutenberg #4397
Conversation
Use <Button> instead of the now deprecated <IconButton>: WordPress/gutenberg#19299 The styling here isn't ideal, but it's the best compromise of all of the scenarios that I could come up with.
Hi @pierlon, |
This has a button, and the warning was from it being a child of a button.
Sorry, forgot to remove the Update: Sorry, going to remove the |
The only thing that looked to use it was DotTip.
That should be all for commits, if/when Travis passes. |
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.
Changes look good 👍, and they work as described in WP 5.2, 5.3 and 5.4. One thing I did notice is that when hovering over the AMP icon it's showing "AMP-Icon":
It can be found in the SVG file being used:
amp-wp/assets/images/amp-icon.svg
Line 3 in ae8a3bb
<title>AMP-Icon</title> |
Can a tooltip be applied to the button here to override that?
Hi @pierlon, |
Before, the title of the SVG displayed instead.
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
94ffeae
to
e3b8ea2
Compare
@googlebot I consent. |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
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.
Awesome, great work here @kienstra!
I've went ahead and removed the title
tag from the amp-icons.svg
as it conflicts with the tooltip, and done the same for amp-white-icon.svg
as well.
OK, sounds good! |
Summary
<Button>
instead of the now deprecated<IconButton>
that I could come up with.
npm run build:css
for the changed styling here1) WP 5.3.2, Gutenberg plugin inactive (looks the same as WP 5.2)
2) WP 5.3.2, Gutenberg plugin active
3) WP 5.4-RC2, Gutenberg plugin inactive
4) WP 5.4-RC2, Gutenberg plugin active
Fixes #4368
Checklist