Skip to content

Conversation

@mdperez86
Copy link
Contributor

All Submissions:

Changes proposed in this Pull Request:

Closes #35565

  • This PR is a very minor change/addition and does not require testing instructions (if checked you can ignore/remove the next section).

How to test the changes in this Pull Request:

  1. Got to Products -> Add New (MVP) page
  2. Under Attributes section click Add first attribute button
  3. The Add attribute modal should be shown
  4. When on mobile screen the table's header should be hidden, the attribute and values field have labels and are stacked in rows while the trash icon remains on the right with 8px margin right.

image

  1. When on tablet screen the table's header should be hidden, the attribute and values field have labels and are stacked in rows while the trash icon remains on the right with 8px margin right.

image

  1. When on desktop screen the table's header should be shown, the attribute and values field don't have labels and are stacked in columns as well as the trash icon that has 8px margin right.

image

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you created a changelog file for each project being changed, ie pnpm --filter=<project> changelog add?

FOR PR REVIEWER ONLY:

  • I have reviewed that everything is sanitized/escaped appropriately for any SQL or XSS injection possibilities. I made sure Linting is not ignored or disabled.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 25, 2022

Test Results Summary

Commit SHA: 6cf5521

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests25900202611m 8s
E2E Tests186006019215m 21s

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.

louwie17
louwie17 previously approved these changes Nov 29, 2022
Copy link
Contributor

@louwie17 louwie17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested well, and code looks good! I did leave one minor suggestion, but not quite necessary in my opinion.

};

const attributeLabel = __( 'Attribute', 'woocommerce' );
const valueLabel = __( 'Values', 'woocommerce' );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@include breakpoint('<782px') {
position: relative;
grid-template-columns: 1fr;
padding-right: 42px;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be worth adding a comment here, mentioning this padding is for the trash-column to display correctly?

@mdperez86 mdperez86 requested a review from louwie17 November 29, 2022 18:37
word-wrap: normal !important;
}

@mixin sr-only {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is sr = screen reader a known abbreviation? I didn't know, I only figured it out because of the comment on line 170.

If possible I suggest renaming the mixins to screen-reader-only and not-screen-reader-only

@mdperez86 mdperez86 requested a review from nathanss November 30, 2022 14:46
nathanss
nathanss previously approved these changes Nov 30, 2022
@mdperez86 mdperez86 merged commit 25a7c35 into trunk Nov 30, 2022
@mdperez86 mdperez86 deleted the enhancement/35565 branch November 30, 2022 16:28
@github-actions github-actions bot added this to the 7.3.0 milestone Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin: woocommerce Issues related to the WooCommerce Core plugin.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement]: Improve element stacking in modals on tablet and mobile

4 participants