amp-wp
amp-wp copied to clipboard
AMP preview button seems to show duplicate logo when AMP sidebar is pinned
Bug Description
In Transitional/Reader modes, there is an AMP preview button that is separate from the regular Preview button. Additionally, as of #5589 there is a new plugin sidebar for displaying validation errors. When that sidebar is pinned, the result is an apparent duplication of the AMP buttons in the toolbar:
Granted we want to eliminate the separate AMP preview button in favor of adding an AMP item to the Preview dropdown, but this is blocked by https://github.com/WordPress/gutenberg/issues/25309. Nevertheless, I wanted to point it out as a potential source of user confusion in the meantime.
The resolution for this issue may be wontfix
.
Expected Behaviour
The AMP logo should not appear multiple times in the toolbar.
Steps to reproduce
- Activate Reader or Transitional mode.
- Edit a post.
- Pin the AMP plugin sidebar
- See two logos in the toolbar
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
There's a draft PR to add the capability in Gutenberg https://github.com/WordPress/gutenberg/pull/25430
@westonruter Would anyone from the AMP team be up for helping to wrap that PR up? It seems so close! 😅
@delawski Is https://github.com/WordPress/gutenberg/pull/25430 something you can take up?
@westonruter @simison I'll have a look and see what I can do about it.