Skip to content

Commit

Permalink
Correção do placeholder na variant "outlined" (#187)
Browse files Browse the repository at this point in the history
* fix: displays placeholder correctly in outlined variant

* chore: update version
  • Loading branch information
diegogasparbuilders authored Oct 28, 2024
1 parent f0fe236 commit 46e76d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platformbuilders/fluid-react",
"version": "1.2.10",
"version": "1.2.11",
"private": false,
"description": "Builders React for Fluid Design System",
"keywords": [
Expand Down
10 changes: 10 additions & 0 deletions src/components/TextInput/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,16 @@ export const InputWrapper = styled.div<InputWrapperProps>`
${$isDisabled && `opacity: 0.5`};
${$hasFocus &&
css`
input {
&::placeholder {
color: ${textMain};
opacity: 0.5;
}
}
`}
&:hover {
border-color: ${hasError(dangerMain, primaryMain)};
${$isDisabled && `border-color: #10141633`};
Expand Down

0 comments on commit 46e76d2

Please sign in to comment.