-
Notifications
You must be signed in to change notification settings - Fork 3
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
SHS-5872: Implementation light accordion bg and tables #1644
SHS-5872: Implementation light accordion bg and tables #1644
Conversation
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.
@mariannuar Colors look good, there's just a change needed on the table overflow fix. Let me know if you have any questions.
|
||
// Fix tables in accordions | ||
.ptype-hs-accordion details { | ||
&[open] { | ||
.revealed-details { | ||
.hb-table-wrap { | ||
overflow-x: hidden; | ||
} | ||
|
||
.hb-table-pattern { | ||
width: auto; | ||
} | ||
} | ||
} | ||
} |
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 overflow-x: auto
on the table wrapper is intentional, I'm pretty sure it's there to make the table readable in all resolutions. I'll check with Tori if that's something they want to keep, but for now let's remove this change to keep the overflow auto.
Also, width: auto
on the table could make small tables to shrink.
There's a bug that needs to be fixed though. Right now some tables have a scrollbar even when it's not needed, because they have a 100% width but the box-sizing
is set to content-box
. This makes the border not being included in the 100% and causing the table to always overflows by 2px.
To fix it, let change the box-sizing
for the table element:
.hb-table-pattern {
// ...
box-sizing: border-box;
}
Let's fix this globally in docroot/themes/humsci/humsci_basic/src/scss/components/_pattern.table-pattern.scss
.
@cienvaras Got it. Thanks for the feedback! Just a heads up that I added that box-sizing to the |
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.
@mariannuar Looks great, thanks!
@ahughes3 Ready for your review.
READY FOR REVIEW
Summary
New implementation to light accordion in Colorful and fix table
Need Review By (Date)
10/09
Urgency
medium
Steps to Test
Light Accordion
now has a border around the content and also the background it's white. Check the designAccordions
with a table and confirm that the table it's not wider than the container anymore. Test this in Traditional too.PR Checklist