Skip to content

Commit 8e72a58

Browse files
authored
fix: update font color for RawFluxDataTable to make it visible (#801)
1 parent a6e26e3 commit 8e72a58

File tree

6 files changed

+44
-25
lines changed

6 files changed

+44
-25
lines changed

giraffe/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@influxdata/giraffe",
3-
"version": "2.34.2",
3+
"version": "2.34.3",
44
"main": "dist/index.js",
55
"module": "dist/index.js",
66
"license": "MIT",

giraffe/src/components/RawFluxDataTable/RawFluxDataGrid.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
@import '../../style/variables.scss';
2+
3+
@font-face {
4+
font-family: 'icomoon';
5+
font-style: normal;
6+
font-weight: normal;
7+
src: url('../../fonts/icomoon.eot') format('embedded-opentype');
8+
src: url('../../fonts/icomoon.eot') format('embedded-opentype'),
9+
url('../../fonts/icomoon.woff2') format('woff2'),
10+
url('../../fonts/icomoon.ttf') format('truetype'),
11+
url('../../fonts/icomoon.woff') format('woff'),
12+
url('../../fonts/icomoon.svg') format('svg');
13+
}
14+
115
.raw-flux-data-table--cell {
216
border: 2px solid #202028;
317
box-sizing: border-box;
@@ -16,6 +30,9 @@
1630
box-sizing: border-box;
1731
border: 2px solid #0f0e15;
1832
border-radius: 2px;
33+
color: $table-graph--text-color;
34+
font-size: $table-graph--font;
35+
font-weight: 400;
1936
position: absolute;
2037
padding: 5px;
2138
min-height: 100%;

giraffe/src/components/Table/TableGraphs.scss

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,4 @@
1-
$table-graph--border: #292933;
2-
$table-graph--cell-highlight: #202028;
3-
$table-graph--cell: #0f0e15;
4-
$table-graph--font: 12px;
5-
$table-graph--heading-bg--active: #292933;
6-
$table-graph--heading-bg: #181820;
7-
$table-graph--heading-sort: #00a3ff;
8-
$table-graph--heading-text-corner: #f6f6f8;
9-
$table-graph--heading-text: #c6cad3;
10-
$table-graph--text-color: #999dab;
11-
$table-graph--text-highlight: #ffffff;
12-
13-
$table-light-graph--border: #e7e8eb;
14-
$table-light-graph--cell-highlight: #f6f6f8;
15-
$table-light-graph--cell: #ffffff;
16-
$table-light-graph--heading-bg--active: #e7e8eb;
17-
$table-light-graph--heading-bg: #eeeff2;
18-
$table-light-graph--heading-sort: #00a3ff;
19-
$table-light-graph--heading-text-corner: #434453;
20-
$table-light-graph--heading-text: #757888;
21-
$table-light-graph--text-color: #676978;
22-
$table-light-graph--text-highlight: #383846;
1+
@import '../../style/variables.scss';
232

243
@font-face {
254
font-family: 'icomoon';

giraffe/src/style/variables.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,26 @@ $cf-text-base-2: #{var(--giraffe-step-2)};
164164
cursor: default;
165165
}
166166
}
167+
168+
$table-graph--border: #292933;
169+
$table-graph--cell-highlight: #202028;
170+
$table-graph--cell: #0f0e15;
171+
$table-graph--font: 12px;
172+
$table-graph--heading-bg--active: #292933;
173+
$table-graph--heading-bg: #181820;
174+
$table-graph--heading-sort: #00a3ff;
175+
$table-graph--heading-text-corner: #f6f6f8;
176+
$table-graph--heading-text: #c6cad3;
177+
$table-graph--text-color: #999dab;
178+
$table-graph--text-highlight: #ffffff;
179+
180+
$table-light-graph--border: #e7e8eb;
181+
$table-light-graph--cell-highlight: #f6f6f8;
182+
$table-light-graph--cell: #ffffff;
183+
$table-light-graph--heading-bg--active: #e7e8eb;
184+
$table-light-graph--heading-bg: #eeeff2;
185+
$table-light-graph--heading-sort: #00a3ff;
186+
$table-light-graph--heading-text-corner: #434453;
187+
$table-light-graph--heading-text: #757888;
188+
$table-light-graph--text-color: #676978;
189+
$table-light-graph--text-highlight: #383846;

stories/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@influxdata/giraffe-stories",
3-
"version": "2.34.2",
3+
"version": "2.34.3",
44
"license": "MIT",
55
"repository": {
66
"type": "git",

stories/src/rawFluxDataTable.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {fluxCSV} from './data/fluxCSV'
1111
storiesOf('Raw Flux Data Table', module)
1212
.addDecorator(withKnobs)
1313
.add('Raw Flux Data Table', () => {
14-
const backgroundColor = text('Background contrast color:', 'grey')
14+
const backgroundColor = text('Background contrast color:', 'black')
1515
const csv1 = text('Paste first CSV here:', '')
1616
const csv2 = text('Paste second CSV here:', '')
1717

0 commit comments

Comments
 (0)