@@ -6,7 +6,7 @@ const React = require('react')
6
6
const ImmutableComponent = require ( '../../../js/components/immutableComponent' )
7
7
const { StyleSheet, css} = require ( 'aphrodite/no-important' )
8
8
const globalStyles = require ( './styles/global' )
9
- const { isWindows} = require ( '../../common/lib/platformUtil' )
9
+ const { isWindows, isDarwin } = require ( '../../common/lib/platformUtil' )
10
10
const { tabs} = require ( '../../../js/constants/config' )
11
11
const { hasBreakpoint, hasRelativeCloseIcon,
12
12
hasFixedCloseIcon, hasVisibleSecondaryIcon, getTabIconColor} = require ( '../lib/tabUtil' )
@@ -207,6 +207,8 @@ class TabTitle extends ImmutableComponent {
207
207
}
208
208
209
209
render ( ) {
210
+ // Brad said that tabs with white title on macOS look too thin
211
+ const enforceFontVisibilty = isDarwin ( ) && getTabIconColor ( this . props ) === 'white'
210
212
const titleStyles = StyleSheet . create ( {
211
213
gradientText : {
212
214
backgroundImage : `-webkit-linear-gradient(left,
@@ -219,6 +221,7 @@ class TabTitle extends ImmutableComponent {
219
221
className = { css (
220
222
styles . tabTitle ,
221
223
titleStyles . gradientText ,
224
+ enforceFontVisibilty && styles . enforceFontVisibilty ,
222
225
// Windows specific style
223
226
isWindows ( ) && styles . tabTitleForWindows
224
227
) } >
@@ -335,6 +338,10 @@ const styles = StyleSheet.create({
335
338
WebkitBackgroundClip : 'text'
336
339
} ,
337
340
341
+ enforceFontVisibilty : {
342
+ fontWeight : '600'
343
+ } ,
344
+
338
345
tabTitleForWindows : {
339
346
fontWeight : '500' ,
340
347
fontSize : globalStyles . fontSize . tabTitle
0 commit comments