-
-
Notifications
You must be signed in to change notification settings - Fork 761
Changes to products table in order to left align the table header and table element #13629
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
base: master
Are you sure you want to change the base?
Conversation
drummer83
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.
Thanks! I think you can be brave enough to remove the old code instead of commenting it out. We can always find the history of changes in GitHub. 💪🏻
|
Only saw the comment now, i will remove the commented lines then. |
|
Just removed the commented lines. |
|
These changes achieve the desired result? |
|
@MrBowmanXD this PR is approved by a reviewer and is now awaiting testing from our testing team. That will confirm if the results are as expected. Thank you |
|
Hi @MrBowmanXD, You changed the scss code in three places, I will go through them one by one. Products tableThis is the table we want to improve. 👍 Before your PR we can see some sort of border around the table: After staging the PR that border has disappeared: Actions Wrapper 2Here you can see the actions wrapper. It is only visible when changes were made to any of the displayed products. The wrapper is above the table headers which we want to adjust in this PR. I don't see any need to change its scss.
Table header 'with-input'Looking at this one is a good start! 👍
Additional commentThis whole issue seems to be independent from the feature toggle for variant tags. We just need to make sure that also the tags column is well aligned. Thanks again for your work on this one. Please reach out if I or any developer can help you moving this forward. ❤️ |
| background-color: $color-tbl-bg; | ||
| padding: 4px; | ||
| padding-top: 0; // Hide border because .form-actions is there. It is added with th padding instead. | ||
| padding: 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.
There is no need to change this padding. It breaks the table design and doesn't help fixing the issue.
| left: -4px; | ||
| width: calc(100% + 8px); | ||
| left: 0; | ||
| width: 100%; |
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.
The actions wrapper is not part of what we want to fix. No need to change this.
| th.with-input { | ||
| // Additional padding to line up with content of input | ||
| padding-left: $padding-tbl-cell + $hpadding-txt; | ||
| padding-left: $padding-tbl-cell; | ||
|
|
||
| &.align-right { | ||
| padding-right: $padding-tbl-cell + $hpadding-txt; | ||
| padding-right: $padding-tbl-cell; |
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 believe this is not needed anymore at all. Not 100 % sure, but worth having a look.
|
Thank you for the feedback it was very insightfull. Going to take some time to process this information and return with the changes required. It's a pleasure to work on this. |



What? Why?
Changes to the sass code in table products in order to left align table headers and with their respective table elements.
What should we test?
Release notes
Changelog Category (reviewers may add a label for the release notes):
The title of the pull request will be included in the release notes.