Skip to content

Commit b1c7adf

Browse files
committed
Bug fixes.
1 parent 877f8e2 commit b1c7adf

File tree

6 files changed

+15
-18
lines changed

6 files changed

+15
-18
lines changed

src/pg/button/button.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
font-family: var(--pg-font-family);
1010
font-size: var(--pg-button-font-size, 1rem);
1111
line-height: var(--pg-button-line-height, 1.5rem);
12-
border: 1px solid var(--pg-button-border-color, #453C4F);
12+
border: var(--pg-button-border-width, 1px) solid var(--pg-button-border-color, #453C4F);
1313
background-color: var(--pg-button-background-color, #FFFFFF);
1414
color: var(--pg-button-color, #453C4F);
1515
padding: var(--pg-button-padding, 0.25rem 0.5rem);
@@ -19,7 +19,7 @@
1919
}
2020

2121
[part="button"]:hover {
22-
border: 1px solid var(--pg-button-hover-border-color, #453C4F);
22+
--pg-button-border-color: var(--pg-button-hover-border-color, #453C4F);
2323
background-color: var(--pg-button-hover-background-color, #453C4F);
2424
color: var(--pg-button-hover-color, #FFFFFF);
2525
--pg-icon-color: var(--pg-button-hover-color, #FFFFFF);
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[part=table] {
2+
--pg-button-padding: 0;
3+
--pg-button-border-width: 0;
4+
}

src/pg/table/__examples__/basic/basic.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ import { Component, Part, Prop } from '@pictogrammers/element';
33
import PgTable, { createTableItem } from '../../table';
44
import PgTableCellButtonIcon from '../../../tableCellButtonIcon/tableCellButtonIcon';
55

6+
import style from './basic.css';
67
import template from './basic.html';
78

89
const IconStar = 'M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z';
910
const IconStarOutline = 'M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z';
1011

1112
@Component({
1213
selector: 'x-pg-table-basic',
14+
style,
1315
template
1416
})
1517
export default class XPgTableBasic extends HTMLElement {

src/pg/table/table.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
[part=table] {
77
display: table;
8+
border-spacing: 2px;
89
}
910

1011
[part=header] {

src/pg/tableCellText/tableCellText.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
[part=label] {
66
display: table-cell;
7-
border-style: solid;
8-
border-width: 1px;
9-
border-color: var(--pg-table-border-color, #453C4F);
107
padding: 0.125rem 0.5rem;
8+
border-top: 0;
9+
background: #F1F1F1;
10+
border-radius: 0.125rem;
11+
vertical-align: middle;
1112
}

src/pg/tableColumn/tableColumn.css

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,11 @@
22
display: contents;
33
}
44

5-
:host(:first-child) [part=label] {
6-
border-top-left-radius: 0.25rem;
7-
}
8-
9-
:host(:last-child) [part=label] {
10-
border-top-right-radius: 0.25rem;
11-
}
12-
13-
:host(:not(:first-child)) [part=label] {
14-
border-left: 0;
15-
}
16-
175
[part=label] {
186
display: table-cell;
197
border-style: solid;
20-
border-width: 1px;
8+
border-width: 0 0 1px 0;
219
border-color: var(--pg-table-border-color, #453C4F);
2210
padding: 0.125rem 0.5rem;
11+
font-weight: 600;
2312
}

0 commit comments

Comments
 (0)