-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Image Gallery: Update toolbar position and tooltips #35534
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
Conversation
Test Results SummaryCommit SHA: 4d4e16f
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
joshuatf
left a comment
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.
Testing well and looks much better! Thanks for this!
Not directly related to this PR and we can handle in a follow-up, but noticed a couple of oddities around the toolbar. In storybook, it's difficult to see the toolbar in the top row:
The tooltips appear below the image, far from the toolbar itself:
| top: -58px; | ||
| left: 50%; | ||
| transform: translateX(-50%); | ||
| z-index: 1000; |
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.
Is this an arbitrary number or relative to some other component? Just curious if it's relative to some other component; if so we could consider using z-index('.other-component') but not a blocker for this PR.
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.
Arbitrary. I tried using the approach you mentioned, but it complained that the other component (the image gallery container element) didn't have a z-index. I made a note to circle back to this.


All Submissions:
Changes proposed in this Pull Request:
The position of the toolbar has been adjusted to provide an
8pxmargin between the toolbar and the image. The z-index of the toolbar has also been updated to prevent the tooltips from appears behind images.The toolbar tooltips have also been updated:
Drag to reorderMove previousMove nextSet as coverRemoveCloses #35182
Closes #35184
Before
After
How to test the changes in this Pull Request:
Products>Add new (MVP)Note: If the image gallery is tested in Storybook, it will not show the tooltips in the correct location, as we are still dependent on an older version of
@wordpress/componentswhen not running in WordPress (where we use whatever version of@wordpress/componentsit supplies; WordPress 6.1 supplies a version that fixes the tooltip positioning issue).Other information:
pnpm --filter=<project> changelog add?FOR PR REVIEWER ONLY: