-
Notifications
You must be signed in to change notification settings - Fork 9
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
fix(accordion): styles #1834
fix(accordion): styles #1834
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @kishore03109 and the rest of your teammates on Graphite |
bf61867
to
1b5e0ba
Compare
@@ -31,6 +31,7 @@ export const BlockWrapper = ({ | |||
backgroundColor="#055AFF" | |||
textColor="white" | |||
p="0.25rem" | |||
mt="-0.75rem" |
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.
why's this required? from the review, this seems like accordion should have a 0.75rem
gap, not that the gap between elements should be reduced by 0.75rem
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.
hey this crit from design was outdated (look at the Se Hyun's comments)
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.
src/layouts/components/Editor/extensions/Details/IsomerDetailGroupView.tsx
Outdated
Show resolved
Hide resolved
mr="-0.5rem" | ||
mt="-1.5rem" |
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.
could we need to use negative margins to remove padding? wouldn't this cause accordion to be out of alignment with the other elements
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 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.
hmm i get that - but the odd thing is i couldn't find negative margins being used in card grid ._.
i'm ok with this for now ba but if there's time, please try to figure out why card grids doesn't require the negative margin
borderTop="1px solid #d4d4d4" | ||
borderBottom="1px solid #d4d4d4" |
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.
should we use colour tokens here
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.
sadly we dont have a token for this yet.
@sehyunidaaa may i get your help in this ya
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.
ahh this is cos i used the colors from the template. my bad!
can use divider/strong
from OGPDS please thank you
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.
we shouldn't be mixing production code w/ testing code; additionally, the usage of negative margins might be problematic - i might be lacking context here, but best is if we can reduce the actual padding elsewhere rather than using negative margins
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.
please use colour tokens!
borderColor="base.divider.medium" | ||
display="flex" | ||
justifyContent="flex-end" | ||
boxShadow="0px 8px 12px 0px rgba(187, 187, 187, 0.50)" |
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.
could we use a token for this?
boxShadow: `0 0 0 1px var(--chakra-colors-gray-400)`
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.
@sehyunidaaa may i get token for this please?
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 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.
hmmm can we use this shadow-sm
from OGPDS?
https://github.com/opengovsg/design-tokens/blob/09eeb37eaca44f0cb56e64d992cdee75b34e7661/tokens.json#L1109C1-L1110C1 ? might look a bit different but not earth-shattering, it's a small shadow
but we've been using the same bespoke shadow for other bubble menus btw
boxShadow="0px 8px 12px 0px rgba(187, 187, 187, 0.50)" |
d6a2715
to
555656f
Compare
555656f
to
825766a
Compare
Problem
Design review for accordions, addressing changes here.
Solution
Fix styling issues