Skip to content

Commit e8d1717

Browse files
committed
Updates
1 parent 17f6cb1 commit e8d1717

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

site/src/components/component-name-matrix.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
overflow: hidden;
1919
text-overflow: ellipsis;
2020
white-space: nowrap;
21-
background: white;
22-
border-bottom: 1px solid rgba(0, 0, 0, 0.5);
21+
background: Canvas;
22+
border-bottom: 1px solid light-dark(rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.5));
2323
}
2424

2525
.component-name-matrix .cell {
@@ -30,16 +30,16 @@
3030
overflow: hidden;
3131
height: 2rem;
3232
line-height: 1.2;
33-
border-right: 1px solid rgba(0, 0, 0, 0.1);
34-
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
33+
border-right: 1px solid light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
34+
border-bottom: 1px solid light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
3535
}
3636
.component-name-matrix .cell.found {
3737
background: rgba(0, 255, 0, 0.1);
38-
color: rgb(0, 64, 0);
38+
color: light-dark(rgb(0, 64, 0), rgb(0, 191, 0));
3939
}
4040
.component-name-matrix .cell.not-found {
4141
background: rgba(255, 0, 0, 0.1);
42-
color: rgb(64, 0, 0);
42+
color: light-dark(rgb(64, 0, 0), rgb(191, 0, 0));
4343

4444
}
4545
.component-name-matrix a.cell {

site/src/components/component-name-matrix.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ const SORT_NEXT = {
1111
MATCH_COUNT: SORT_OPTIONS.COMPONENT_NAME,
1212
}
1313

14-
const ComponentNameMatrix = (props) => {
15-
const [sort, setSort] = useState(SORT_OPTIONS.COMPONENT_NAME)
14+
function ComponentNameMatrix() {
15+
// const [sort, setSort] = useState(SORT_OPTIONS.COMPONENT_NAME)
16+
const [sort, setSort] = [SORT_OPTIONS.COMPONENT_NAME, () => {}]
1617

1718
const getMatchName = (name) =>
1819
name

site/src/components/specimens.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
position: relative;
2929
padding: 4px 8px;
3030
min-width: 120px;
31-
color: rgba(0, 0, 0, 0.5);
3231
border-top: 1px solid #ccc;
3332
font-size: 0.8rem;
3433
}

site/src/styles/research.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@
55

66
.true {
77
background: #a3edac;
8+
color: black;
89
}
910

1011
table.research td:not(.true):not(.false) {
1112
background: #ffffca;
13+
color: black;
1214
}
1315

1416
table.nowrap-first-column td:nth-child(1):not(.false):not(.true) {
1517
background: initial;
18+
color: initial;
1619
}
1720

1821
/* Should be applied to a td/th

site/src/styles/spec.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dd + dt {
1414

1515
.question {
1616
background: #f7f781;
17+
color: black;
1718
position: relative;
1819
display: flex;
1920
padding: 0.5em;

0 commit comments

Comments
 (0)