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

2016 design qa tweaks #2022

Merged
merged 11 commits into from
Dec 23, 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
1 change: 1 addition & 0 deletions benefit-finder/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = defineConfig({
runMode: 2,
openMode: 0,
},
viewportWidth: 1050,
e2e: {
baseUrl: 'http://localhost:6006',
excludeSpecPattern: 'cypress/e2e/usagov-public-site/*.cy.js',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ exports[`loads intro 1`] = `
with each agency.
</p>
<p>
We do not share, save, or submit your information.
<strong>
We do not share, save, or submit
</strong>
your information.
</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ exports[`Intro > renders a match to the previous snapshot 1`] = `
with each agency.
</p>
<p>
We do not share, save, or submit your information.
<strong>
We do not share, save, or submit
</strong>
your information.
</p>
</div>
</div>
Expand Down
12 changes: 6 additions & 6 deletions benefit-finder/src/Routes/Intro/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.bf-cta-wrapper {
display: flex;
justify-content: center;
margin: rem(20px) 0 rem(56px);
margin: rem(20px) 0 rem(24px);

@media (width >= $desktop) {
margin: rem(32px) rem(32px) rem(64px);
Expand All @@ -32,7 +32,7 @@
margin-left: rem(16px);
}

.bf-intro-process-notices-heading {
.bf-intro-process-notices-heading {
width: 100;
margin-bottom: rem(30px);
}
Expand All @@ -59,14 +59,14 @@
.bf-usa-process-list {
margin-left: 0;
margin-right: 0;
padding-top:rem(8px);
padding-top: rem(8px);

.bf-usa-process-list__heading {
font-size: rem(16px);

@media (width >= $desktop) {
font-size: rem(21px);
}
@media (width >= $desktop) {
font-size: rem(21px);
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion benefit-finder/src/Routes/LifeEventSection/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

.bf-grid-container.grid-container {
max-width: $form-container-max-width;
padding: 0 rem(36px);
padding: 0 rem(20px);

@media (width >= calc($form-container-max-width + rem(24px))) {
padding-left: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6215,7 +6215,7 @@ exports[`loads view 1`] = `
data-testid="bf-result-view-unmet-button"
type="button"
>
Explore benefits you did not qualify for
See benefits you didn't qualify for
</button>
</div>
</div>
Expand Down Expand Up @@ -6303,7 +6303,12 @@ exports[`loads view 1`] = `
Share results
</h3>
<p>
Copy or email these results. Your answers will be visible. Only share with those you trust.
Copy or email these results. Your answers will be visible.
<strong>
Only share with those you trust
<!--&lt;strong-->
.
</strong>
</p>
<ul
class="bf-result-view-share-results-button-group"
Expand All @@ -6313,7 +6318,8 @@ exports[`loads view 1`] = `
<a
class="bf-share-trigger bf-usa-link usa-link"
data-testid="bf-share-trigger"
href=""
role="link"
tabindex="0"
>
Share link
</a>
Expand All @@ -6322,7 +6328,8 @@ exports[`loads view 1`] = `

<a
class="bf-email-trigger bf-usa-link usa-link"
href=""
role="link"
tabindex="0"
>
Email results
</a>
Expand Down Expand Up @@ -12554,7 +12561,7 @@ exports[`scenario 1 loads in view with the correct amount of likely eligible ite
data-testid="bf-result-view-unmet-button"
type="button"
>
Explore benefits you did not qualify for
See benefits you didn't qualify for
</button>
</div>
</div>
Expand Down Expand Up @@ -12642,7 +12649,12 @@ exports[`scenario 1 loads in view with the correct amount of likely eligible ite
Share results
</h3>
<p>
Copy or email these results. Your answers will be visible. Only share with those you trust.
Copy or email these results. Your answers will be visible.
<strong>
Only share with those you trust
<!--&lt;strong-->
.
</strong>
</p>
<ul
class="bf-result-view-share-results-button-group"
Expand All @@ -12652,7 +12664,8 @@ exports[`scenario 1 loads in view with the correct amount of likely eligible ite
<a
class="bf-share-trigger bf-usa-link usa-link"
data-testid="bf-share-trigger"
href=""
role="link"
tabindex="0"
>
Share link
</a>
Expand All @@ -12661,7 +12674,8 @@ exports[`scenario 1 loads in view with the correct amount of likely eligible ite

<a
class="bf-email-trigger bf-usa-link usa-link"
href=""
role="link"
tabindex="0"
>
Email results
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ exports[`Results > renders a match to the previous snapshot 1`] = `
Share results
</h3>
<p>
Copy or email these results. Your answers will be visible. Only share with those you trust.
Copy or email these results. Your answers will be visible.
<strong>
Only share with those you trust
<!--&lt;strong-->
.
</strong>
</p>
<ul
class="bf-result-view-share-results-button-group"
Expand All @@ -121,7 +126,8 @@ exports[`Results > renders a match to the previous snapshot 1`] = `
<a
class="bf-share-trigger bf-usa-link usa-link"
data-testid="bf-share-trigger"
href=""
role="link"
tabindex="0"
>
Share link
</a>
Expand All @@ -130,7 +136,8 @@ exports[`Results > renders a match to the previous snapshot 1`] = `

<a
class="bf-email-trigger bf-usa-link usa-link"
href=""
role="link"
tabindex="0"
>
Email results
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
@use '@styles/functions' as *;

.bf-result-view {
.bf-grid-container.grid-container {
padding: rem(20px);
}
.bf-grid-container.grid-container {
padding: rem(20px);
}
}

.bf-result-view-benefits,
Expand All @@ -20,6 +20,24 @@
.bf-result-view-relevant-benefits-heading,
.bf-result-view-share-results-heading {
@include h3;

margin-left: rem(15px);

@media (width > $desktop) {
margin-left: 0;
}
}

> p {
margin-left: rem(15px);

@media (width > $desktop) {
margin-left: 0;
}
}

.bf-expand-all {
display: none;
}
}

Expand All @@ -32,6 +50,10 @@
display: flex;
justify-content: center;
}

@media (width > $desktop) {
margin-left: 0;
}
}

.bf-result-view-share-results-trigger-group {
Expand All @@ -48,4 +70,8 @@
.bf-result-view-details {
padding: rem(24px) 5.4rem;
}

.bf-result-view-benefits .bf-expand-all {
display: block;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const Results = ({
>
{shareResults?.heading}
</Heading>
<p>{shareResults?.description}</p>
<p dangerouslySetInnerHTML={createMarkup(shareResults?.description)} />
<ul className="bf-result-view-share-results-button-group">
<li>
{' '}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
@use '@styles/mixins' as *;
@use '@styles/functions' as *;
@use '@styles/breakpoints' as *;

.bf-eligible-view-heading {
@include h2;

margin-left: rem(15px);

@media (width > $desktop) {
margin-left: 0;
}
}

.bf-eligible-view-description {
@include h6;

margin-left: rem(15px);

@media (width > $desktop) {
margin-left: 0;
}
}
3 changes: 1 addition & 2 deletions benefit-finder/src/shared/components/Alert/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
@use '@styles/breakpoints' as *;
@use '@styles/functions' as *;


h2.bf-usa-alert__heading {
@include h5($font-family: 'sans');

Expand Down Expand Up @@ -31,7 +30,7 @@ h2.bf-usa-alert__heading {
padding-left: rem(32px);
}

ul {
.bf-usa-alert ul {
padding-left: 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ exports[`Email > renders a match to the previous snapshot 1`] = `
<DocumentFragment>
<a
class="bf-email-trigger bf-usa-link usa-link"
href=""
role="link"
tabindex="0"
>
Email
</a>
Expand Down
4 changes: 3 additions & 1 deletion benefit-finder/src/shared/components/EmailTrigger/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ const EmailTrigger = ({ ui, data }) => {

return (
<a
href=""
tabIndex={0}
role="link"
className="bf-email-trigger bf-usa-link usa-link"
onClick={e => handleClick(e)}
onKeyDown={e => handleClick(e)}
>
{ui?.emailTrigger || 'Email'}
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ exports[`NoticesList > renders a match to the previous snapshot 1`] = `
with each agency.
</p>
<p>
We do not share, save, or submit your information.
<strong>
We do not share, save, or submit
</strong>
your information.
</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ exports[`Share > renders a match to the previous snapshot 1`] = `
<a
class="bf-share-trigger bf-usa-link usa-link"
data-testid="bf-share-trigger"
href=""
role="link"
tabindex="0"
>
Share
</a>
Expand Down
4 changes: 3 additions & 1 deletion benefit-finder/src/shared/components/ShareTrigger/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ const ShareTrigger = ({ ui, data }) => {

return (
<a
href=""
tabIndex={0}
role="link"
className="bf-share-trigger bf-usa-link usa-link"
onClick={e => handleClick(e)}
onKeyDown={e => handleClick(e)}
data-testid="bf-share-trigger"
>
{ui?.shareTrigger || 'Share'}
Expand Down
7 changes: 6 additions & 1 deletion benefit-finder/src/shared/components/Summary/_index.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
@use '@styles/mixins' as *;
@use '@styles/colors' as color;
@use '@styles/functions' as *;
@use '@styles/breakpoints' as *;

.bf-usa-summary-box {
@include h5($font-family: 'sans');

margin-bottom: rem(16px);
margin: rem(16px) rem(15px);
border-color: color.$teal;

@media (width > $desktop) {
margin: rem(16px) 0;
}

.bf-usa-list {
li {
@include list-items;
Expand Down
Loading
Loading