Skip to content

Commit

Permalink
STCOM-1195: <AdvancedSearchRow> - change aria-label for the input…
Browse files Browse the repository at this point in the history
… box to enter a search query and the Boolean operator dropdown. (#2409)
  • Loading branch information
Dmytro-Melnyshyn authored Jan 6, 2025
1 parent 22ab4bb commit 925b7ba
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* Clear filter value after an action chosen from `MultiSelection` menu. Refs STCOM-1385.
* ExportCSV - fix usage within `<Modal>`s by rendering the download link to the `div#OverlayContainer`. Refs STCOM-1387.
* `<MenuSection>` should default its heading/label tag to `H3` instead of `H1`. Refs STCOM-1392.
* `<AdvancedSearchRow>` - change `aria-label` for the input box to enter a search query and the Boolean operator dropdown. Refs STCOM-1195.

## [12.2.0](https://github.com/folio-org/stripes-components/tree/v12.2.0) (2024-10-11)
[Full Changelog](https://github.com/folio-org/stripes-components/compare/v12.1.0...v12.2.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const AdvancedSearchRow = ({
: (
<Select
data-test-advanced-search-bool
aria-label={intl.formatMessage({ id: 'stripes-components.advancedSearch.boolean.label' })}
aria-label={intl.formatMessage({ id: 'stripes-components.advancedSearch.booleanLabel' })}
onChange={(e) => onChange(index, FIELD_NAMES.BOOL, e.target.value)}
value={rowState[FIELD_NAMES.BOOL]}
dataOptions={booleanOptions}
Expand All @@ -91,7 +91,7 @@ const AdvancedSearchRow = ({
isCursorAtEnd
rows={TEXTAREA_HEIGHT}
data-test-advanced-search-query
aria-label={intl.formatMessage({ id: 'stripes-components.advancedSearch.field.label' })}
aria-label={intl.formatMessage({ id: 'stripes-components.advancedSearch.fieldLabel' })}
onChange={(e) => onChange(index, FIELD_NAMES.QUERY, e.target.value)}
value={rowState[FIELD_NAMES.QUERY]}
autoFocus={isActive}
Expand Down
4 changes: 2 additions & 2 deletions translations/stripes-components/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"advancedSearch.match.containsAny": "Contains any",
"advancedSearch.footer.search": "Search",
"advancedSearch.footer.cancel": "Cancel",
"advancedSearch.boolean.label": "Operator",
"advancedSearch.field.label": "Search for",
"advancedSearch.booleanLabel": "Select Boolean operator",
"advancedSearch.fieldLabel": "Enter search term",
"advancedSearch.match.label": "Match option",
"advancedSearch.searchOptions.label": "Search options",
"advancedSearch.searchOptions.query": "Query",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2347,9 +2347,9 @@
minimist "^1.2.0"

"@folio/stripes-testing@^4.7.0":
version "4.8.10900000034395"
resolved "https://repository.folio.org/repository/npm-folioci/@folio/stripes-testing/-/stripes-testing-4.8.10900000034395.tgz#645cb7995b601d9c29095d270bfcf0091df3814e"
integrity sha512-5Ziwutee8e0uinHMq5aHrytY6ecC9qCFJCNJuBJx4WQbll9KMLkYPR3fF311Q1fSvyK9QMHPCKFHMblItRuQtA==
version "4.9.10900000036396"
resolved "https://repository.folio.org/repository/npm-folioci/@folio/stripes-testing/-/stripes-testing-4.9.10900000036396.tgz#d439664b3bac42ce071f279934695950d81689e2"
integrity sha512-pEdF7uUqx+nx5/2/DWCNeH3/Pee5Xs09/EPptc0IXLKYRoos39MB1g6O+VSAxSVn/FpZyH77iy+MFlImphLIQA==
dependencies:
"@babel/core" "^7.19.3"
"@babel/eslint-parser" "^7.19.1"
Expand Down

0 comments on commit 925b7ba

Please sign in to comment.