Skip to content

Commit

Permalink
Merge pull request #235 from cfpb/more-language
Browse files Browse the repository at this point in the history
additional wording updates
  • Loading branch information
sephcoster authored Apr 17, 2020
2 parents c228647 + c0ccf93 commit c7dff6f
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/FilterPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class FilterPanel extends React.Component {
fieldName="company_received"
/>
<hr/>
<SimpleFilter title="Consumer consent"
<SimpleFilter title="Consumer consent provided?"
desc={ descConsumerConsent }
fieldName="consumer_consent_provided"
/>
Expand Down
4 changes: 2 additions & 2 deletions src/ListPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const sizes = [ 10, 25, 50, 100 ]
/* eslint-disable camelcase */

const sorts = {
created_date_desc: 'Newest to Oldest',
created_date_asc: 'Oldest to Newest',
created_date_desc: 'Newest to oldest',
created_date_asc: 'Oldest to newest',
relevance_desc: 'Relevance',
relevance_asc: 'Relevance (asc)'
}
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/__snapshots__/App.spec.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -993,13 +993,13 @@ exports[`initial state renders without crashing 1`] = `
<h4
className="o-expandable_header-left o-expandable_label"
>
Consumer consent
Consumer consent provided?
</h4>
<span
className="o-expandable_header-right o-expandable_link"
>
<button
aria-label="Show Consumer consent filter"
aria-label="Show Consumer consent provided? filter"
className="a-btn a-btn__link o-expandable_cue o-expandable_cue-open"
onClick={[Function]}
>
Expand Down
32 changes: 16 additions & 16 deletions src/__tests__/__snapshots__/ListPanel.spec.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ exports[`component:ListPanel displays a message when an error has occurred 1`] =
<option
value="created_date_desc"
>
Newest to Oldest
Newest to oldest
</option>
<option
value="created_date_asc"
>
Oldest to Newest
Oldest to newest
</option>
<option
value="relevance_desc"
Expand Down Expand Up @@ -440,12 +440,12 @@ exports[`component:ListPanel displays a message when only the narratives are sta
<option
value="created_date_desc"
>
Newest to Oldest
Newest to oldest
</option>
<option
value="created_date_asc"
>
Oldest to Newest
Oldest to newest
</option>
<option
value="relevance_desc"
Expand Down Expand Up @@ -914,12 +914,12 @@ exports[`component:ListPanel displays a message when the data has issues 1`] = `
<option
value="created_date_desc"
>
Newest to Oldest
Newest to oldest
</option>
<option
value="created_date_asc"
>
Oldest to Newest
Oldest to newest
</option>
<option
value="relevance_desc"
Expand Down Expand Up @@ -1388,12 +1388,12 @@ exports[`component:ListPanel displays a message when the data is stale 1`] = `
<option
value="created_date_desc"
>
Newest to Oldest
Newest to oldest
</option>
<option
value="created_date_asc"
>
Oldest to Newest
Oldest to newest
</option>
<option
value="relevance_desc"
Expand Down Expand Up @@ -1837,12 +1837,12 @@ exports[`component:ListPanel displays a message when there are no results 1`] =
<option
value="created_date_desc"
>
Newest to Oldest
Newest to oldest
</option>
<option
value="created_date_asc"
>
Oldest to Newest
Oldest to newest
</option>
<option
value="relevance_desc"
Expand Down Expand Up @@ -2116,12 +2116,12 @@ exports[`component:ListPanel only displays data message when both types are stal
<option
value="created_date_desc"
>
Newest to Oldest
Newest to oldest
</option>
<option
value="created_date_asc"
>
Oldest to Newest
Oldest to newest
</option>
<option
value="relevance_desc"
Expand Down Expand Up @@ -2566,12 +2566,12 @@ exports[`component:ListPanel renders mobile filters without crashing 1`] = `
<option
value="created_date_desc"
>
Newest to Oldest
Newest to oldest
</option>
<option
value="created_date_asc"
>
Oldest to Newest
Oldest to newest
</option>
<option
value="relevance_desc"
Expand Down Expand Up @@ -3015,12 +3015,12 @@ exports[`component:ListPanel renders without crashing 1`] = `
<option
value="created_date_desc"
>
Newest to Oldest
Newest to oldest
</option>
<option
value="created_date_asc"
>
Oldest to Newest
Oldest to newest
</option>
<option
value="relevance_desc"
Expand Down
8 changes: 4 additions & 4 deletions src/__tests__/__snapshots__/ResultsPanel.spec.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ exports[`component:Results renders List print mode without crashing 1`] = `
<option
value="created_date_desc"
>
Newest to Oldest
Newest to oldest
</option>
<option
value="created_date_asc"
>
Oldest to Newest
Oldest to newest
</option>
<option
value="relevance_desc"
Expand Down Expand Up @@ -908,12 +908,12 @@ exports[`component:Results renders list panel without crashing 1`] = `
<option
value="created_date_desc"
>
Newest to Oldest
Newest to oldest
</option>
<option
value="created_date_asc"
>
Oldest to Newest
Oldest to newest
</option>
<option
value="relevance_desc"
Expand Down

0 comments on commit c7dff6f

Please sign in to comment.