-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Added CustomLongTextField and using it for 'Expression', 'Sasl J…
…aas Config' fields
- Loading branch information
Shivam Gupta
committed
Apr 29, 2024
1 parent
4a0fdaf
commit 783a1d1
Showing
5 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/ui/src/components/Form/customField/CustomLongTextField.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.custom-long-test-field { | ||
textarea { | ||
padding: 6px 8px 0; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
packages/ui/src/components/Form/customField/CustomLongTextField.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { HTMLFieldProps } from 'uniforms'; | ||
import { LongTextField } from '@kaoto-next/uniforms-patternfly'; | ||
import './CustomLongTextField.scss'; | ||
|
||
export type CustomLongTextFieldProps = HTMLFieldProps<string, HTMLDivElement>; | ||
|
||
export const CustomLongTextField = (props: CustomLongTextFieldProps) => { | ||
return <LongTextField className="custom-long-test-field" {...props} rows={1} autoResize={true} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters