diff --git a/modules/react/text-input/lib/InputGroup.tsx b/modules/react/text-input/lib/InputGroup.tsx index c16531ebcf..6cdb349ba1 100644 --- a/modules/react/text-input/lib/InputGroup.tsx +++ b/modules/react/text-input/lib/InputGroup.tsx @@ -1,6 +1,7 @@ import React from 'react'; -import {space} from '@workday/canvas-kit-react/tokens'; +import {maybeWrapCSSVariables} from '@workday/canvas-kit-styling'; +import {system} from '@workday/canvas-tokens-web'; import { createContainer, createElemPropsHook, @@ -198,11 +199,11 @@ export const InputGroup = createContainer('div')({ // `offsetEnd` arrays React.Children.forEach(children, child => { if (React.isValidElement(child) && child.type === InputGroupInnerStart) { - const width = child.props.width || space.xl; + const width = maybeWrapCSSVariables(child.props.width || system.space.x10); offsetsStart.push(width); } if (React.isValidElement(child) && child.type === InputGroupInnerEnd) { - const width = child.props.width || space.xl; + const width = maybeWrapCSSVariables(child.props.width || system.space.x10); offsetsEnd.push(width); } }); diff --git a/modules/styling/lib/cs.ts b/modules/styling/lib/cs.ts index e3a14d4583..d5347b8c4e 100644 --- a/modules/styling/lib/cs.ts +++ b/modules/styling/lib/cs.ts @@ -36,9 +36,17 @@ type DefaultedVarsShape = Record | Record