on master help sign in
fix: simplify divider css
3820abbMatt Condon (shrugs)
src/indigo-react/components/Grid.js+2−16
@@ -63,22 +63,8 @@ Grid.Item = React.forwardRef(function GridItem(
63 );
63 );
64});
64});
65
65
66−Grid.Divider = function GridDivider({
66+Grid.Divider = function GridDivider({ color = 'gray2', className, ...rest }) {
67− vertical = false,
68− color = 'gray2',
69− className,
70− ...rest
71−}) {
72− return (
73− <div
74− style={{
75− height: vertical ? 'auto' : '1px',
76− width: vertical ? '1px' : 'auto',
77− }}
78− className={cn('full', `bg-${color}`, className)}
67+ return <div className={cn('full', `bt1 b-${color}`, className)} {...rest} />;
79− {...rest}
80− />
81− );
82};
68};
83
69
84export default Grid;
70export default Grid;