Skip to content

Commit

Permalink
Update RN search language
Browse files Browse the repository at this point in the history
  • Loading branch information
mel-miller committed Jan 23, 2024
1 parent a90ee75 commit d9f54c7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions src/templates/releaseNotesListing.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ const ReleaseNotesListingTemplate = ({ data }) => {

// Render release notes or no results message.
const noResultsMessage = (
<p className="pds-spacing-mar-block-end-2xl">No results.</p>
<p className="pds-spacing-mar-block-end-2xl">
No results found. Try refining your search terms or explore other
categories.
</p>
)
const renderedReleaseNotes =
releasenotes.length !== 0 ? renderedTeasers : noResultsMessage
Expand Down Expand Up @@ -104,12 +107,12 @@ const ReleaseNotesListingTemplate = ({ data }) => {
}}
>
<div class="pds-input-field__decorators">
<Icon iconName="barsFilter" />
<Icon iconName="magnifyingGlass" />
</div>
<input
type="search"
aria-label="Filter release notes"
placeholder="Filter release notes"
aria-label="Search release notes"
placeholder="Search release notes"
id="release-note-filter"
className="pds-input-field__input"
onChange={debouncedHandleInputChange}
Expand Down
11 changes: 7 additions & 4 deletions src/templates/releaseNotesListingByCategory.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ const ReleaseNotesListingByCategoryTemplate = ({ data, pageContext }) => {

// Render release notes or no results message.
const noResultsMessage = (
<p className="pds-spacing-mar-block-end-2xl">No results.</p>
<p className="pds-spacing-mar-block-end-2xl">
No results found. Try refining your search terms or explore other
categories.
</p>
)
const renderedReleaseNotes =
releasenotes.length !== 0 ? renderedTeasers : noResultsMessage
Expand Down Expand Up @@ -108,12 +111,12 @@ const ReleaseNotesListingByCategoryTemplate = ({ data, pageContext }) => {
}}
>
<div class="pds-input-field__decorators">
<Icon iconName="barsFilter" />
<Icon iconName="magnifyingGlass" />
</div>
<input
type="search"
aria-label="Filter release notes"
placeholder={`Filter ${categoryData["displayName"]} release notes`}
aria-label={`Search ${categoryData["displayName"]} release notes`}
placeholder={`Search ${categoryData["displayName"]} release notes`}
id="release-note-filter-by-category"
className="pds-input-field__input"
onChange={debouncedHandleInputChange}
Expand Down

0 comments on commit d9f54c7

Please sign in to comment.