<rh-card>
: incorrect margins / breakpoints
#2007
Labels
bug
Something isn't working
needs discussion
This issue needs further discussion
needs prioritization
This issue needs prioritization
priority: high
High priority
Milestone
@max-messmer reported in the update on RHDC from previous version of RHDS to 2.1.0 that
rh-card
appeared to have a smaller margin.I believe the problem lies in at point we switched from
@media
queries to@container
queries but didn't take into account that the swap wasn't as simple as a1:1
. The spacing guide (although itself having problems) shows a desktop size and a mobile size, the former with amargin-inline: 32px
and latermargin-inline: 24px
. This break originally happened at a media query of 768px. However given a direct swap to @container this break point wouldn't be hit unless the card itself was that wide. Given the documentation my assumption is the correct fix for this would be to reduce the container query to:If the card then is less than 320px wide the
margin-inline
would reduce.I created this codepen to demonstrate the issue
Thanks @max-messmer for reporting this issue.
The text was updated successfully, but these errors were encountered: