Skip to content

Commit 702adf9

Browse files
committed
💄 improve visibility on dark mode
1 parent 672fd40 commit 702adf9

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

client/components/mobile/Tab.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default styled(Link)`
99
1010
background: transparent;
1111
/* border-top: ${remSize(4)} solid ${props => prop(props.selected ? 'colors.p5jsPink' : 'MobilePanel.default.background')}; */
12-
border-top: ${remSize(4)} solid ${props => (props.selected ? prop('colors.p5jsPink') : 'transparent')};
12+
border-top: ${remSize(4)} solid ${props => (props.selected ? prop('TabHighlight') : 'transparent')};
1313
1414
color: ${prop('primaryTextColor')};
1515

client/modules/Mobile/MobileDashboardView.jsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const ContentWrapper = styled(Content)`
4747
tbody td, thead th {
4848
justify-self: stretch;
4949
align-self: flex-end;
50+
color: ${prop('primaryTextColor')}
5051
}
5152
5253
tbody td:nth-child(2) { grid-column-start: 2 }
@@ -57,8 +58,13 @@ const ContentWrapper = styled(Content)`
5758
height: ${remSize(48)};
5859
}
5960
60-
.sketches-table-container { padding-bottom: ${remSize(160)} }
61-
.sketches-table__row { background: white !important; height: auto }
61+
.sketches-table-container {
62+
padding-bottom: ${remSize(160)};
63+
background: ${prop('backgroundColor')};
64+
}
65+
.sketches-table__row {
66+
background: ${prop('backgroundColor')} !important; height: auto
67+
}
6268
6369
tr {
6470
align-self: start;

client/theme.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ export default {
104104
border: grays.middleLight
105105
},
106106
Separator: grays.middleLight,
107+
108+
TabHighlight: colors.p5jsPink,
107109
},
108110
[Theme.dark]: {
109111
colors,
@@ -149,6 +151,8 @@ export default {
149151
border: grays.middleDark
150152
},
151153
Separator: grays.middleDark,
154+
155+
TabHighlight: colors.p5jsPink,
152156
},
153157
[Theme.contrast]: {
154158
colors,
@@ -194,5 +198,7 @@ export default {
194198
border: grays.middleDark
195199
},
196200
Separator: grays.middleDark,
201+
202+
TabHighlight: colors.yellow,
197203
},
198204
};

0 commit comments

Comments
 (0)