diff --git a/packages/components/src/angle-picker-control/index.tsx b/packages/components/src/angle-picker-control/index.tsx index cab8dddd88b984..7c6155fdc561b7 100644 --- a/packages/components/src/angle-picker-control/index.tsx +++ b/packages/components/src/angle-picker-control/index.tsx @@ -9,18 +9,14 @@ import classnames from 'classnames'; */ import deprecated from '@wordpress/deprecated'; import { forwardRef, useRef } from '@wordpress/element'; -import { __ } from '@wordpress/i18n'; +import { isRTL, __ } from '@wordpress/i18n'; /** * Internal dependencies */ import NumberControl from '../number-control'; import AngleCircle from './angle-circle'; -import { Root } from './styles/angle-picker-control-styles'; -import { space } from '../ui/utils/space'; -import { Text } from '../text'; -import { Spacer } from '../spacer'; -import { COLORS } from '../utils/colors-values'; +import { Root, UnitText } from './styles/angle-picker-control-styles'; import type { WordPressComponentProps } from '../ui/context'; import type { AnglePickerControlProps } from './types'; @@ -65,6 +61,11 @@ function UnforwardedAnglePickerControl( const refNumberInput = useRef(); + const unitText = °; + const [ prefixedUnitText, suffixedUnitText ] = isRTL() + ? [ unitText, null ] + : [ null, unitText ]; + return ( - - ° - + { suffixedUnitText }