Skip to content

Commit

Permalink
Merge pull request #2022 from GSA/2016-design-qa-tweaks
Browse files Browse the repository at this point in the history
2016 design qa tweaks
  • Loading branch information
scottqueen-bixal authored Dec 23, 2024
2 parents 4ca9589 + 0d27aa3 commit faa7e9b
Show file tree
Hide file tree
Showing 14 changed files with 97 additions and 25 deletions.
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 @@ -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 @@ -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
4 changes: 2 additions & 2 deletions benefit-finder/src/shared/locales/en/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"notEligibleResults": {
"heading": "Benefits you did not qualify for",
"description": "<div>Based on your answers you are not eligible for these benefits. <strong>You may become eligible if you enter additional information or your situation changes.</strong></div>",
"cta": "Explore benefits you did not qualify for"
"cta": "See benefits you didn't qualify for"
},
"resultsRelativeBenefits": {
"heading": "More benefits"
Expand All @@ -164,7 +164,7 @@
"shareLinkContent": "Copied",
"emailTrigger": "Email results",
"emailSubject": "Results from USAGov’s benefit finder",
"description": "Copy or email these results. Your answers will be visible. Only share with those you trust."
"description": "Copy or email these results. Your answers will be visible. <strong>Only share with those you trust</<strong>."
}
},
"shareResults": {
Expand Down
2 changes: 1 addition & 1 deletion benefit-finder/src/shared/locales/es/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
"emailTrigger": "Envie sus resultados por correo electrónico",
"shareLinkContent": "Copiado",
"emailSubject": "Resultados del buscador de beneficios de USAGov",
"description": "Copie o envíe sus resultados. Sus respuestas serán visibles. Solo comparta con quienes usted confíe."
"description": "Copie o envíe sus resultados. Sus respuestas serán visibles. <strong>Solo comparta con quienes usted confíe</strong>."
}
},
"shareResults": {
Expand Down

0 comments on commit faa7e9b

Please sign in to comment.