Skip to content

Commit

Permalink
Choice remove se23 logic in Choice.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
gwyneplaine committed Aug 14, 2023
1 parent faafc12 commit 2b5aa06
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions polaris-react/src/components/Choice/Choice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import type {ResponsiveProp} from '../../utilities/css';
import type {Error} from '../../types';
import {InlineError} from '../InlineError';
import {Text} from '../Text';
import {useFeatures} from '../../utilities/features';

import styles from './Choice.scss';

Expand Down Expand Up @@ -90,7 +89,6 @@ export function Choice({
bleedInlineStart,
bleedInlineEnd,
}: ChoiceProps) {
const {polarisSummerEditions2023} = useFeatures();
const className = classNames(
styles.Choice,
labelHidden && styles.labelHidden,
Expand Down Expand Up @@ -158,7 +156,7 @@ export function Choice({
as="span"
// `undefined` means color: inherit
// the nearest ancestor with a specified color is .Descriptions in Choice.scss
color={disabled && polarisSummerEditions2023 ? undefined : 'subdued'}
color={disabled ? undefined : 'subdued'}
>
{helpText}
</Text>
Expand Down

0 comments on commit 2b5aa06

Please sign in to comment.