diff --git a/.changeset/real-fans-tap.md b/.changeset/real-fans-tap.md new file mode 100644 index 00000000000..f419b1ad11d --- /dev/null +++ b/.changeset/real-fans-tap.md @@ -0,0 +1,5 @@ +--- +"@primer/react": minor +--- + +Convert TextInput to use data attributes diff --git a/packages/react/src/TextInputWithTokens/TextInputWithTokens.tsx b/packages/react/src/TextInputWithTokens/TextInputWithTokens.tsx index e2c97ac77f1..fa03c61a48e 100644 --- a/packages/react/src/TextInputWithTokens/TextInputWithTokens.tsx +++ b/packages/react/src/TextInputWithTokens/TextInputWithTokens.tsx @@ -13,7 +13,7 @@ import Token from '../Token/Token' import type {TokenSizeKeys} from '../Token/TokenBase' import type {TextInputSizes} from '../internal/components/TextInputWrapper' -import TextInputWrapper, {textInputHorizPadding} from '../internal/components/TextInputWrapper' +import TextInputWrapper from '../internal/components/TextInputWrapper' import UnstyledTextInput from '../internal/components/UnstyledTextInput' import TextInputInnerVisualSlot from '../internal/components/TextInputInnerVisualSlot' @@ -266,8 +266,8 @@ function TextInputWithTokensInnerComponent { width: '100%', display: 'flex', } - const defaultStyles = renderStyles(