-
Notifications
You must be signed in to change notification settings - Fork 5
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
Removes borders around form sections #1136
Conversation
import React from 'react'; | ||
import AddressList from './AddressList'; | ||
|
||
const Addresses: React.FC = () => { | ||
return ( | ||
<FormLayout> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The FormLayout
component has a styles set to display the border that we wanted to remove from around the form's smaller sections. The FormLayout
component is used throughout the UI, so replacing it with the Stack
component allows for the content to be grouped together. This change will also make it easier to apply specific styles to a smaller section within a form.
@@ -3,7 +3,7 @@ import { chakra, useDisclosure } from '@chakra-ui/react'; | |||
import CountryOfRegistration from 'components/CountryOfRegistration'; | |||
import FormLayout from 'layouts/FormLayout'; | |||
import NameIdentifiers from '../NameIdentifiers'; | |||
import NationalIdentification from '../NameIdentification'; | |||
import NationalIdentification from '../NationalIdentification'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file name was changed to make it easier to locate the component.
@@ -148,21 +148,27 @@ const ContactsForm: React.FC<ContactsFormProps> = ({ data, shouldResetForm, onRe | |||
title={t`Legal/ Compliance Contact (required)`} | |||
description={t`Compliance officer or legal contact for requests about the compliance requirements and legal status of your organization. A business phone number is required to complete physical verification for MainNet registration. Please provide a phone number where the Legal/ Compliance contact can be contacted.`} | |||
/> | |||
<ContactForm | |||
<Box pt={5}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Box
is Chakra UI's (the component library used for this app) way of adding a <div>
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved @daniellemaxwell!
Scope of changes
This removes borders that appeared around smaller sections of the registration form. The borders were removed from the Legal Form, Contacts Form, and TRISA Implementation Form.
Below is an image of the Legal Form which displays the borders that have been removed in this PR:
https://www.awesomescreenshot.com/image/45230137?key=90d86e2a4ffbb0639a2196b56934f4b3
Note: Padding above the buttons will addressed in another story.
Type of change
Acceptance criteria
Note: Some changes were made to allow me to make changes while not being able to log in. This caused the form to take longer to load in the video below, so no stories will be created to address the issues that appear when in the video.
https://www.awesomescreenshot.com/video/23806300?key=464e6853ac043ab69eb732284a0f981f
Author checklist
Reviewer(s) checklist