Skip to content

Commit

Permalink
fix(search-form): Show ellipsis when placeholder overflows (#2927)
Browse files Browse the repository at this point in the history
Add ellipsis to placeholder text in the search form.

[category:Components]
  • Loading branch information
NicholasBoll authored Sep 17, 2024
1 parent f4c1db6 commit 677270f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/labs-react/search-form/lib/SearchForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ const SearchInput = styled(TextInput)<
'&::placeholder': {
color: inputColors.placeholderColor,
},
'&:placeholder-shown': {
textOverflow: 'ellipsis',
},
'&:not([disabled])': {
'&:focus, &:active': {
outline: 'none',
Expand Down

0 comments on commit 677270f

Please sign in to comment.