Skip to content

Commit

Permalink
Add feature detection to Account Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
frontdevde committed Sep 7, 2017
1 parent 2327994 commit 3d195d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/me/account/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import MeSidebarNavigation from 'me/sidebar-navigation';
import { protectForm } from 'lib/protect-form';
import formBase from 'me/form-base';
import config from 'config';
import { supportsCssCustomProperties } from 'lib/feature-detection';
import Card from 'components/card';
import FormTextInput from 'components/forms/form-text-input';
import FormTextValidation from 'components/forms/form-input-validation';
Expand Down Expand Up @@ -546,6 +547,7 @@ const Account = React.createClass( {
{ this.communityTranslator() }

{ config.isEnabled( 'me/account/color-scheme-picker' ) &&
supportsCssCustomProperties() &&
<FormFieldset>
<FormLabel htmlFor="color_scheme">
{ translate( 'Admin Color Scheme' ) }
Expand Down

0 comments on commit 3d195d3

Please sign in to comment.