Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Blueprint]: Clean Up Create and Edit Type Node Modal #2111

Merged
merged 2 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,13 @@ export const Editor = ({

return (
<Flex>
<Flex direction="row" justify="flex-end">
<HeaderRow>
<HeaderText>{selectedSchema ? 'Edit Type' : 'Create Type'}</HeaderText>
<CloseButton data-testid="close-sidebar-sub-view" onClick={onCancel}>
<ClearIcon />
</CloseButton>
</Flex>
</HeaderRow>
<LineBarWrapper />
<Flex>
<FormProvider {...form}>
<form id="add-type-form" onSubmit={onSubmit}>
Expand Down Expand Up @@ -541,6 +543,13 @@ const CustomButton = styled(Button)`
margin: 0 auto !important;
`

const LineBarWrapper = styled.div`
border-bottom: 1px solid ${colors.black};
width: calc(100% + 32px);
margin: 0 -16px 16px;
opacity: 0.3;
`

const ClipLoaderWrapper = styled.span`
margin-top: 2px;
`
Expand All @@ -563,6 +572,16 @@ const CloseButton = styled(Flex)`
font-size: 32px;
color: ${colors.white};
cursor: pointer;

svg {
color: ${colors.GRAY6};
}

&:hover {
svg {
color: ${colors.white};
}
}
`

const StyledError = styled(Flex)`
Expand All @@ -580,3 +599,21 @@ const LineBar = styled.div`
opacity: 0.5;
margin-left: -16px;
`

const HeaderRow = styled(Flex)`
flex-direction: row;
justify-content: space-between;
align-items: center;
width: 100%;
margin-bottom: 16px;
`

const HeaderText = styled(Text)`
font-family: Barlow;
font-size: 22px;
font-weight: 600;
line-height: 16px;
letter-spacing: 0.01em;
text-align: left;
color: ${colors.white};
`
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const HeaderWrapper = styled(Flex)`
border-top-right-radius: 9px;
justify-content: space-between;
padding: 17px;
border-bottom: 1px solid ${colors.black};
`

const IconWrapper = styled.div`
Expand Down
Loading