Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
fix: textfield issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaeho Lee committed Dec 21, 2022
1 parent 1c32322 commit 62f4087
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .changeset/sweet-trainers-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@greenlabs/formula-components": patch
"@greenlabs/rescript-formula-components": patch
---

textfield bugfix

- prevent right border clipping on a certain variant
- polyvary name typo
- https://github.com/green-labs/farmmy-web/pull/159
2 changes: 1 addition & 1 deletion packages/components-rescript/src/Formula__TextField.res
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ external make: (
~renderInput: renderInputProps<{..}> => React.element=?,
~className: string=?,
~variant: [#boxOutline | #boxFill | #line]=?,
~size: [#xsmall | #samll | #medium | #large]=?,
~size: [#xsmall | #small | #medium | #large]=?,
~_type: [#text | #password]=?,
~placeholder: string=?,
~prefix: React.element=?,
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/TextField/TextField.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export const Textarea_and_Ref_Etc: ComponentStory<typeof TextField> = (
<br />
<TextField
{...args}
variant="boxFill"
titleText="options.showHintOnFocusOnly | options.hideClearButton"
options={{
showHintOnFocusOnly: true,
Expand Down
5 changes: 4 additions & 1 deletion packages/components/src/TextField/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,13 @@ export const inputStyle = style({
"::placeholder": {
color: theme.colors["gray-40"],
},
fontFamily: theme.font.body,
":focus": {
outline: "none", // FIXME
},
fontFamily: theme.font.body,
// a temporary hack to prevent input clipping outer border
borderTopRightRadius: 4,
borderBottomRightRadius: 4,
selectors: {
[`${textFieldVariants["line.large"]} &`]: {
vars: {
Expand Down

0 comments on commit 62f4087

Please sign in to comment.