Fix: reviewed Identities Mobile page#1180
Fix: reviewed Identities Mobile page#1180Marchand-Nicolas merged 2 commits intolfglabs-dev:testnetfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
@emarc99 is attempting to deploy a commit to the LFG Labs Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe CSS file for the identity card component was updated to adjust border widths for the Changes
Suggested labels
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🔭 Outside diff range comments (1)
styles/components/identityCard.module.css (1)
22-27: Ensure seamless overlap between the identity card container and its.cardCodefooterThe container’s bottom border is currently removed (
border-width: 2px 2px 0 2px), while the footer (.cardCode) usesmargin-top: -1px. Any sub-pixel rounding or browser zoom can expose a 1 px gap.• styles/components/identityCard.module.css:22
Current:
border-width: 2px 2px 0 2px;• styles/components/identityCard.module.css:89
Current:
margin-top: -1px;Consider one of the following fixes:
Option A – restore a thin bottom border on the container:
- border-width: 2px 2px 0px 2px; + /* keep a minimal bottom border to avoid visual gaps */ + border-width: 2px 2px 2px 2px;Option B – increase the overlap on
.cardCodeto fully cover the gap:- margin-top: -1px; + /* overlap by the full 2px to eliminate any hairline gap */ + margin-top: -2px;Either approach will prevent a hairline gap from appearing under zoom.
🧹 Nitpick comments (3)
styles/components/identityCard.module.css (3)
80-90: 8 px bottom border on.cardCodeis noticeably thicker than the other sides
border-width: 0 2px 8px 2pxintroduces a 4 × discrepancy (8 px bottom vs 2 px others).
On high-dpi devices this looks visually heavy and may clash with the 30 px border-radius, producing a “flat” corner.Unless the design system mandates this accent, a more balanced value (e.g. 4 px) keeps the visual weight consistent with the header borders that were reduced from 6 px → 2 px.
- border-width: 0px 2px 8px 2px; + /* harmonise footer thickness with overall frame */ + border-width: 0 2px 4px 2px;
160-166: Confirm--dark-contenttoken exists and passes contrastThe colour token was changed from the previous dark text variable to
var(--dark-content).
- Verify that
--dark-contentis defined in the global theme; otherwise this text will inheritinitial(usually black) in some browsers.- Run a quick WCAG contrast check against
var(--primary300)(the chip background) – body/micro text requires at least 4.5:1.If either condition fails, revert or introduce an appropriate token.
8-27: Consider extracting border thickness into a CSS custom propertyMultiple selectors now hard-code
2px,4px, and8pxwidths. Centralising this in a token such as--identity-card-border-thicknessimproves maintainability and keeps desktop/mobile overrides consistent.:root { --identity-card-border-thickness: 2px; --identity-card-footer-thickness: 4px; /* or inherit & scale */ } .container { border-width: var(--identity-card-border-thickness) var(--identity-card-border-thickness) 0 var(--identity-card-border-thickness); } .cardCode { border-width: 0 var(--identity-card-border-thickness) var(--identity-card-footer-thickness) var(--identity-card-border-thickness); }Also applies to: 80-90, 160-166
Marchand-Nicolas
left a comment
There was a problem hiding this comment.
Great looks nice thanks! Lgtm!
Summary by CodeRabbit