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

Update primary action link & remove useless prop #29848

Merged
merged 3 commits into from
May 21, 2024

Conversation

Thrillberg
Copy link
Contributor

Summary

This PR updates the primary action link on the form upload flow. It also removes a prop that we don't use on the content-build side so it is useless. We'll switch on whether a form has the form upload flow purely on the content-build side, not here.

Related issue(s)

https://app.zenhub.com/workspaces/vagov-product-team-forms-634853151f5c6000165942bc/issues/gh/department-of-veterans-affairs/va.gov-team-forms/1280

Screenshots

Screenshot 2024-05-17 at 11 08 01 AM

@Thrillberg Thrillberg requested a review from a team as a code owner May 17, 2024 15:12
@va-vfs-bot va-vfs-bot temporarily deployed to master/simple-forms/form-upload/update-primary-action-links/main May 17, 2024 15:46 Inactive
Comment on lines 31 to 40
<div className="arrow" style={{ maxWidth: '75%' }}>
<div className="vads-u-background-color--primary vads-u-padding--1">
<a
className="vads-c-action-link--white"
href={`/form-upload/${formNumber}`}
>
Start uploading your form
</a>
</div>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Given that we're using this exact same component in multiple places now, I'd love it if this could be defined in a common space and instantiated where necessary. Do we have such a spot we can park this component?

Comment on lines 1 to 15
.arrow {
position: relative;
}

.arrow::after {
content: "";
position: absolute;
top: 0;
right: -24px;
width: 0;
height: 0;
border-top: 24px solid transparent;
border-bottom: 24px solid transparent;
border-left: 24px solid var(--vads-color-primary);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Same with this css file!

Copy link
Contributor

@pennja pennja left a comment

Choose a reason for hiding this comment

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

Overall, this is straightforward and looks good! I'd really like to eliminate the code duplication and more importantly reduce points of potential divergence between the multiple iterations of this component so I'd like to see them combined into one definition if at all possible.

@Thrillberg Thrillberg requested review from a team as code owners May 20, 2024 19:44
@va-vfs-bot va-vfs-bot temporarily deployed to master/simple-forms/form-upload/update-primary-action-links/main May 20, 2024 20:39 Inactive
Copy link
Contributor

@rhasselle-oddball rhasselle-oddball left a comment

Choose a reason for hiding this comment

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

changes lgtm, one suggestion

src/platform/forms/sass/_m-schemaform.scss Outdated Show resolved Hide resolved
@Thrillberg Thrillberg merged commit b78de94 into main May 21, 2024
83 of 84 checks passed
@Thrillberg Thrillberg deleted the simple-forms/form-upload/update-primary-action-links branch May 21, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants