This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Filter by Stock block (#6883)
* Update Filter by Stock controls and UI to include custom checkbox and settings. * Include and style Filter by Stock reset button * Make checkbox accessible via keyboard * Update snapshot tests for Filter Products by Stock component * Update E2E tests with new label value * Update label test for Apply Filters in E2E tests * Specify checkbox type so styles are not overridden in the editor * Update E2E test label for filter button * Update label selector to search for containing text rather than exact match * Escape quotation marks for label query in E2E shopper tests for Filter by Stock * Correct typo on Filter by Stock controls * Replace custom checkbox with CheckboxControl component from the checkout package. * Remove opacity on product count for checkbox label so its the same color as the label. * Update snapshot tests with new component usage for filter by stock * Update block title from Filter Products by Stock to Filter by Stock * Update reset button behaviour to clear selections immediately regardless of whether the Apply Filters button is active or not. * Pass option value as ID to satisfy E2E tests * Update snapshot tests for stock filter * Reset checked state on reset for when they have filters checked but not applied.
- Loading branch information
1 parent
446b59e
commit d524f43
Showing
11 changed files
with
381 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,4 @@ | |
&::after { | ||
content: ")"; | ||
} | ||
opacity: 0.6; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.