Skip to content

Commit 4a21178

Browse files
authored
Merge pull request #388 from solid-social/feature-datacontent-pane-striped-table
Add striped background to DataContentPane table rows fixes #387
2 parents 9a1b170 + 5f6cf66 commit 4a21178

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dataContentPane.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export const dataContentPane = {
153153
if (
154154
UI.utils.ancestor(newTable, 'TABLE') &&
155155
UI.utils.ancestor(newTable, 'TABLE').style.backgroundColor ===
156-
'white'
156+
'white'
157157
) {
158158
newTable.style.backgroundColor = '#eee'
159159
} else {
@@ -198,6 +198,7 @@ export const dataContentPane = {
198198
}
199199
for (let i = 0; i < roots.length; i++) {
200200
const tr = myDocument.createElement('tr')
201+
tr.setAttribute('style', `background-color: ${i % 2 === 0 ? '#f0f0f0' : 'white'};`)
201202
rep.appendChild(tr)
202203
const subjectTD = myDocument.createElement('td')
203204
tr.appendChild(subjectTD)

0 commit comments

Comments
 (0)