diff --git a/components/BackgroundSelect.js b/components/BackgroundSelect.js index f92c5cf..0b30059 100644 --- a/components/BackgroundSelect.js +++ b/components/BackgroundSelect.js @@ -5,7 +5,7 @@ import ColorPicker from './ColorPicker' import Button from './Button' import Popout, { managePopout } from './Popout' import { COLORS, DEFAULT_BG_COLOR } from '../lib/constants' -import { capitalize, stringifyRGBA } from '../lib/util' +import { stringifyRGBA } from '../lib/util' function validateColor(str) { if (/#\d{3,6}|rgba{0,1}\(.*?\)/gi.test(str) || /\w+/gi.test(str)) { @@ -67,10 +67,10 @@ class BackgroundSelect extends React.PureComponent { role="button" tabIndex={0} key={tab} - className={`picker-tab ${mode === tab ? 'active' : ''}`} + className={`picker-tab capitalize ${mode === tab ? 'active' : ''}`} onClick={this.selectTab.bind(null, tab)} > - {capitalize(tab)} + {tab} ))} diff --git a/components/Themes/ThemeCreate.js b/components/Themes/ThemeCreate.js index b43830e..43fe6a1 100644 --- a/components/Themes/ThemeCreate.js +++ b/components/Themes/ThemeCreate.js @@ -6,7 +6,7 @@ import ListSetting from '../ListSetting' import Popout from '../Popout' import ColorPicker from '../ColorPicker' import { HIGHLIGHT_KEYS, COLORS } from '../../lib/constants' -import { capitalize, stringifyRGBA, generateId } from '../../lib/util' +import { stringifyRGBA, generateId } from '../../lib/util' const colorPickerStyle = { backgroundColor: COLORS.BLACK, @@ -19,7 +19,7 @@ const colorPresets = [] const HighlightPicker = ({ title, onChange, color }) => (