Skip to content

Commit 1b03159

Browse files
committed
Style fixes
1 parent b1c7adf commit 1b03159

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

src/pg/tableCellButtonIcon/tableCellButtonIcon.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
display: contents;
33
}
44

5-
[part=label] {
5+
[part=cell] {
66
display: table-cell;
7+
padding: 0 0.5rem;
8+
background-color: var(--pg-table-row-background-color);
9+
border-top: 0;
10+
border-radius: 0.125rem;
11+
vertical-align: middle;
12+
justify-items: center;
13+
--pg-button-background-color: transparent;
714
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
<pg-button part="button">
2-
<pg-icon part="icon"></pg-icon>
3-
</pg-button>
1+
<div part="cell">
2+
<pg-button part="button">
3+
<pg-icon part="icon"></pg-icon>
4+
</pg-button>
5+
</div>

src/pg/tableCellText/tableCellText.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
[part=label] {
66
display: table-cell;
77
padding: 0.125rem 0.5rem;
8+
background-color: var(--pg-table-row-background-color);
89
border-top: 0;
9-
background: #F1F1F1;
1010
border-radius: 0.125rem;
1111
vertical-align: middle;
1212
}

src/pg/tableRow/tableRow.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
display: contents;
33
}
44

5+
:host(:nth-child(odd)) {
6+
--pg-table-row-background-color: #f1f1f1;
7+
}
8+
59
[part=cells] {
610
display: table-row;
711
}

0 commit comments

Comments
 (0)