-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Add responsiveness to product form header #35623
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
e57b454 to
8648857
Compare
| // eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
| // @ts-ignore No types for this exist yet. | ||
| // eslint-disable-next-line @woocommerce/dependency-group | ||
| import { store } from '@wordpress/viewport'; |
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 tried to add types to this, but the dependency did not work as expected. Worth sanity checking to make sure it's not just my environment.
| const SecondaryActionsComponent = isSmallViewport ? MenuItem : Button; | ||
| const secondaryActions = ( | ||
| <> | ||
| <SecondaryActionsComponent |
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.
No changes in this code other than the SecondaryActionsComponent swapping that occurs.
Test Results SummaryCommit SHA: 88c14e2
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. |
mdperez86
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.
You have some conflicts here. But anithing else works well. Great job!
345dac8 to
88c14e2
Compare
All Submissions:
Changes proposed in this Pull Request:
Fixes up the product form header on smaller screens and move some secondary buttons into the menu group.
Closes #35168 .
How to test the changes in this Pull Request:
Products -> Add new (MVP)Other information:
pnpm --filter=<project> changelog add?FOR PR REVIEWER ONLY: