@@ -15,6 +15,7 @@ type ListProps =
15
15
{ size :: Maybe Size
16
16
, rightAligned :: Boolean
17
17
, rows :: Array (Array JSX )
18
+ , borders :: Boolean
18
19
}
19
20
20
21
component :: Component ListProps
@@ -30,6 +31,7 @@ list = makeStateless component $ lumiList <<< mapProps
30
31
Just size -> show size
31
32
Nothing -> show Medium
32
33
, " data-right-aligned" : props.rightAligned
34
+ , " data-borders" : props.borders
33
35
, children: map renderRow props.rows
34
36
}
35
37
where
@@ -48,13 +50,15 @@ defaultList =
48
50
{ size: Just $ Medium
49
51
, rightAligned: false
50
52
, rows: []
53
+ , borders: true
51
54
}
52
55
53
56
compactList :: ListProps
54
57
compactList =
55
58
{ size: Just $ Small
56
59
, rightAligned: false
57
60
, rows: []
61
+ , borders: true
58
62
}
59
63
60
64
type StructuredColumnListProps row =
@@ -76,6 +80,7 @@ structuredColumnList = makeStateless structuredColumnListComponent render
76
80
{ size: Just $ Large
77
81
, rightAligned: props.rightAligned
78
82
, rows: map renderRow props.rows
83
+ , borders: true
79
84
}
80
85
where
81
86
renderRow row =
@@ -100,9 +105,9 @@ styles = jss
100
105
, display: " flex"
101
106
, flexFlow: " row wrap"
102
107
, justifyContent: " space-between"
103
- , borderTop: [ " 1px" , " solid" , cssStringHSLA colors.black4 ]
104
108
, minHeight: " calc(48px + 1px)"
105
109
, padding: " 6px 0"
110
+ , borderTop: [ " 1px" , " solid" , cssStringHSLA colors.black4 ]
106
111
107
112
, " & > lumi-list-row-cell" :
108
113
{ boxSizing: " border-box"
@@ -114,6 +119,13 @@ styles = jss
114
119
}
115
120
}
116
121
122
+ , " &[data-borders=\" false\" ]" :
123
+ { border: " 0"
124
+ , " & > lumi-list-row" :
125
+ { border: " 0"
126
+ }
127
+ }
128
+
117
129
, " &[data-size=\" small\" ] > lumi-list-row" :
118
130
{ minHeight: " calc(40px + 1px)"
119
131
, padding: " 2px 0"
0 commit comments