Improve ListingTable card variant border styling#473
Conversation
- Replace box-shadow border with actual CSS borders for better rendering - Increase dark mode border opacity from 0.1 to 0.3 for better visibility - Fix border radius to 8px for consistent appearance
WalkthroughModified ListingTableRow component to apply consistent border styling for card variants, dynamically calculating border colors based on dark mode settings and adding specific borders to cell edges (left for first cell, right for last cell, top/bottom for all cells). Fixed borderRadius constant and refined hover behavior. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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. Comment |


Summary
Improves the visual quality and consistency of ListingTable rows when using the
variant="card"prop by replacing shadow-based borders with proper CSS borders and enhancing dark mode visibility.Changes
Border Implementation
box-shadowwith actual CSSborderproperties on table cellsBorder Radius Simplification
theme.shape.borderRadius * 3) to fixed8pxDark Mode Enhancement
0.1to0.3in dark mode0.12opacity for subtle separationCode Structure
Visual Impact
Before: Card rows had subtle shadow-based borders that were barely visible in dark mode
After: Card rows have crisp, well-defined borders with improved dark mode contrast
Files Changed
packages/oxygen-ui/src/components/ListingTable/ListingTable/ListingTableRow.tsxTesting
The changes maintain backward compatibility. Test by:
variant="card"in both light and dark modesSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.