-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply MUI theming to Register Model form
Signed-off-by: Jenny <[email protected]> fix tests Signed-off-by: Jenny <[email protected]> add fieldset to custom components fix spacing issue with helper text Signed-off-by: Jenny <[email protected]> remove comment Signed-off-by: Jenny <[email protected]> fixes for text area Signed-off-by: Jenny <[email protected]> format Signed-off-by: Jenny <[email protected]> add model description fix Signed-off-by: Jenny <[email protected]> create reusable fieldset component
- Loading branch information
Showing
8 changed files
with
518 additions
and
175 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/FormFieldset.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,21 @@ | ||
import React, { ReactNode } from 'react'; | ||
|
||
interface FormFieldsetProps { | ||
component: ReactNode; | ||
field: string; | ||
} | ||
|
||
const FormFieldset: React.FC<FormFieldsetProps> = ({ component, field }) => { | ||
return ( | ||
<div className="form-fieldset-wrapper"> | ||
{component} | ||
<fieldset aria-hidden="true" className="form-fieldset"> | ||
<legend className="form-fieldset-legend"> | ||
<span>{field}</span> | ||
</legend> | ||
</fieldset> | ||
</div> | ||
); | ||
}; | ||
|
||
export default FormFieldset; |
10 changes: 8 additions & 2 deletions
10
...rontend/src/app/pages/modelRegistry/screens/RegisterModel/PrefilledModelRegistryField.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
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
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
Oops, something went wrong.