-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[backport] Improve swatch table overflow handling #21661
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
[backport] Improve swatch table overflow handling #21661
Conversation
Add overflow:auto to the three swatch tables to allow for scrolling if the amount of inputs exceeds the available space and increase the min width of inputs (150px) within the table for better usability. Intentionally left original input width (50px) as a fallback.
Hi @Cyanoxide. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@magento-engcom-team give me test instance |
Hi @Cyanoxide. Thank you for your request. I'm working on Magento instance for you |
Hi @Cyanoxide, here is your new Magento instance. |
Hi @Cyanoxide, The original pull request is marked as a cleanup. According to the latest changes in contribution guide, the minor style/design fixes are considered as Code Cleanup. Magento Code Contributions Guide - Base achievements Thank you! |
Hi @Cyanoxide, thank you for your contribution! |
@dmytro-ch You'd know better than me so if that's your final decision then no problem but I'm not sure that that's the correct category. The guide says clean up is for "typos, inline documentation, coding style, remove unused code, minor style/design fixes" However this and the original pull request resolve a functional issue that stops swatches from being usable. Without this fix it is impossible to use swatches with more than 15 storeviews without inspecting and adding these styles manually. |
@Cyanoxide, thank you for the details. |
Hi @dmytro-ch, thank you for the review. |
✔️ QA passed |
Hi @Cyanoxide, thank you for your contribution! |
Description (*)
Updates swatches.css to add overflow:auto to the three swatch tables (text, dropdown & visual) to allow for scrolling if the amount of inputs exceeds the available space and increase the min width of inputs (150px) within the table for better usability.
Intentionally left original input width (50px) as a fallback and updated .col-swatch-min-width to be consistent with 2.3.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)