Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit f365536

Browse files
author
Courtney Brousseau
authored
Merge pull request #243 from GSA/sc_update-mobile-menu
Update mobile menu
2 parents bca0f6a + 8682c19 commit f365536

6 files changed

Lines changed: 12 additions & 7 deletions

File tree

config/site/site.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
},
130130
"search_description_heading": "Find Code",
131131
"search_description_text": "Search for federal open source software projects and usable code",
132-
"search_description_text_mobile": "Search projects",
132+
"search_description_text_mobile": "Find Code",
133133
"search_placeholder_text": "e.g. JavaScript, NASA, web standards",
134134
"browse_by_text": "Browse by Agency",
135135
"issue_url": "https://github.com/GSA/code-gov-front-end/issues",

src/components/home-banner-search-box/__snapshots__/home-banner-search-box.component.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ exports[`components - HomeBannerSearchBox render should render correctly 1`] = `
1111
className="search-description-wrapper"
1212
>
1313
<div
14-
className="search-description-heading"
14+
className="search-description-heading show-w-gt-800"
1515
/>
1616
<div
17-
className="show-w-gt-800"
17+
className="search-description-text show-w-gt-800"
1818
>
1919
test-text
2020
</div>

src/components/home-banner-search-box/__snapshots__/home-banner-search-box.container.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ Object {
66
"query": "test-query",
77
"searchDescriptionHeading": "Find Code",
88
"searchDescriptionText": "Search for federal open source software projects and usable code",
9-
"searchDescriptionTextMobile": "Search projects",
9+
"searchDescriptionTextMobile": "Find Code",
1010
}
1111
`

src/components/home-banner-search-box/home-banner-search-box.component.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,12 @@ export default class HomeBannerSearchBoxComponent extends Component {
6565
<div className="search-input-container">
6666
<div className="search-input-wrapper">
6767
<div className="search-description-wrapper">
68-
<div className="search-description-heading">{searchDescriptionHeading}</div>
69-
{searchDescriptionText && <div className="show-w-gt-800">{searchDescriptionText}</div>}
68+
<div className="search-description-heading show-w-gt-800">
69+
{searchDescriptionHeading}
70+
</div>
71+
{searchDescriptionText && (
72+
<div className="search-description-text show-w-gt-800">{searchDescriptionText}</div>
73+
)}
7074
{searchDescriptionTextMobile && (
7175
<div className="show-w-lte-800">{searchDescriptionTextMobile}</div>
7276
)}

src/components/home-banner-search-box/home-banner-search-box.component.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ describe('components - HomeBannerSearchBox', () => {
9595

9696
it('should not render `searchDescriptionText` if not provided', () => {
9797
wrapper.setProps({ searchDescriptionText: undefined })
98-
expect(wrapper.find('.show-w-gt-800').length).toBe(0) // TODO: make data-test attributes...
98+
expect(wrapper.find('.search-description-text').length).toBe(0) // TODO: make data-test attributes...
9999
})
100100

101101
it('should not render `searchDescriptionTextMobile` if not provided', () => {

styles/menu.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ header.main {
2929
top: 50%;
3030
transform: translateY(-50%);
3131
.icon {
32+
color: $brand-blue !important;
3233
position: absolute;
3334
top: 50%;
3435
transform: translateY(-50%);

0 commit comments

Comments
 (0)