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

Removes borders around form sections #1136

Merged
merged 3 commits into from
Jan 8, 2024
Merged

Removes borders around form sections #1136

merged 3 commits into from
Jan 8, 2024

Conversation

daniellemaxwell
Copy link
Collaborator

@daniellemaxwell daniellemaxwell commented Jan 5, 2024

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

  • bug fix
  • new feature
  • documentation
  • other (describe)

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

  • I have manually tested the change and/or added automation in the form of unit tests or integration tests
  • I have updated the dependencies list
  • I have recompiled and included new protocol buffers to reflect changes I made
  • I have added new test fixtures as needed to support added tests
  • Check this box if a reviewer can merge this pull request after approval (leave it unchecked if you want to do it yourself)
  • I have moved the associated Shortcut story to "Ready for Review"

Reviewer(s) checklist

  • Any new user-facing content that has been added for this PR has been QA'ed to ensure correct grammar, spelling, and understandability.

import React from 'react';
import AddressList from './AddressList';

const Addresses: React.FC = () => {
return (
<FormLayout>
Copy link
Collaborator Author

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';
Copy link
Collaborator Author

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}>
Copy link
Collaborator Author

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>.

Copy link
Collaborator

@pdamodaran pdamodaran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved @daniellemaxwell!

@daniellemaxwell daniellemaxwell merged commit a254623 into main Jan 8, 2024
15 checks passed
@daniellemaxwell daniellemaxwell deleted the sc-23204 branch January 8, 2024 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants