-
Notifications
You must be signed in to change notification settings - Fork 69
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
[BD-46] fix: fixed rounded corners for Card.ImageCap component #2496
[BD-46] fix: fixed rounded corners for Card.ImageCap component #2496
Conversation
✅ Deploy Preview for paragon-openedx ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
d77ddd8
to
cf06ebb
Compare
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #2496 +/- ##
=======================================
Coverage 91.39% 91.39%
=======================================
Files 234 234
Lines 4161 4161
Branches 1001 1001
=======================================
Hits 3803 3803
Misses 351 351
Partials 7 7 ☔ View full report in Codecov by Sentry. |
Thanks for the pull request, @PKulkoRaccoonGang! When this pull request is ready, tag your edX technical lead. |
src/Card/index.scss
Outdated
border-top-left-radius: $card-image-border-radius; | ||
border-top-right-radius: $card-image-border-radius; |
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.
[curious] I'm wondering if an alternative approach was explored? That is, what if the parent .pgn__card
had an overflow: hidden
style property such that any children (e.g., .pgn__card-image-cap
) wouldn't need to specify identical border radius values to match the overall .pgn__card
border radius.
Also, the value for $card-image-border-radius
is slightly different than the border radius on the parent Card
(5px vs 6px when computed).
I'm also wondering if we should not rely on a border radius variable specific to Card.ImageCap
; rather should we rely on the $card-border-radius
since this values should
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.
Yes, your proposal about overflow: hidden
best solution in this case.
Please, take a look
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.
LGTM!
@PKulkoRaccoonGang 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
🎉 This PR is included in version 20.45.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Issue: #2473
Deploy Preview
Card component
Merge Checklist
example
app?wittjeff
andadamstankiewicz
as reviewers on this PR.Post-merge Checklist