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
Add/39443 attribute filters #39685
Add/39443 attribute filters #39685
Conversation
Hi @mdperez86, Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
&-help-icon { | ||
position: absolute; | ||
right: -2px; | ||
bottom: 0px; |
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.
Made absolute so that the help icon overlaps the other icon a little bit.
They are also different colours which is why I treated them as separate icons instead of one.
Test Results SummaryCommit SHA: 5343134
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. |
2559520
to
829a0e8
Compare
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.
@louwie17 I see a wrong tooltip text when editing an attribute option
@mdperez86 that should be correct, did you try to click on the question mark, that should cause the popup to happen. It is slightly odd behaviour, but I believe that is what is intended (same as the other info icons ). The premise is that the Tooltip shows |
829a0e8
to
5343134
Compare
That feels no accessible at all, specially in mobile devices. But it's ok if those are the requirements. |
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.
It works as expected. Nice job @louwie17 and thanks for clarification!
@mdperez86 Regarding accessibility, the popover (the white one) should work the same as a regular tooltip, like in |
* Add not filterable and not visible icons to attribute list * Fix types * Add changelogs * Fix lint errors
Submission Review Guidelines:
Changes proposed in this Pull Request:
This adds the not visible and not filterable icons to the attributes list. It also adds a
Use as filter
option to the edit modal for global attributes. This is disabled by default as suggested by @jarekmorawski in this comment: #39443 (comment) as this is not supported by the 'Filter by Attribute' block yet.Closes #39443 .
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
Requires feature flag:
product-variation-management
product-variation-management
feature under Tools > WCA Test Helper > FeaturesChangelog entry
Significance
Type
Message
Comment