Skip to content

Commit

Permalink
feat: Deprecate InputIconContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
dgubko committed Sep 7, 2023
1 parent b0ece1d commit 20b164e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/docs/mdx/10.0-UPGRADE_GUIDE.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ any questions.
- [Removals](#removals)
- [Menu (Preview)](#menu-preview)
- [Deprecations](#deprecations)
- [InputIconContainer](#input-icon-container)
- [Token Updates](#token-updates)
- [Space and Depth](#space-and-depth)
- [Component Updates](#component-updates)
Expand Down Expand Up @@ -70,6 +71,12 @@ Preview and the `Menu` in Main.

## Deprecations

### Input Icon Container

We've deprecated `InputIconContainer` from `TextInput` component, because it doesn't handle
bidirectionality or icons at the start of an input. `InputGroup` should be used instead of
deprecated `InputIconContainer`.

## Token Updates

### Space and Depth
Expand Down
4 changes: 4 additions & 0 deletions modules/react/text-input/lib/InputIconContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ const IconContainer = styled('div')({
right: space.xxs,
});

/**
* @deprecated
*/

export const InputIconContainer: React.FunctionComponent<React.PropsWithChildren<
InputIconContainerProps
>> = ({grow, children, icon}) => (
Expand Down

0 comments on commit 20b164e

Please sign in to comment.