-
Notifications
You must be signed in to change notification settings - Fork 219
Price Filter Block Design update #6877
Conversation
The release ZIP for this PR is accessible via:
|
Script Dependencies ReportThe
This comment was automatically generated by the |
Size Change: +1.35 kB (0%) Total Size: 866 kB
ℹ️ View Unchanged
|
In 98f08ef, I try to render the placeholder on the server side to prevent content flashing and layout shifting issues. The placeholder `is now displayed right after the page load and is only replaced by the actual block data finished loading. However, it comes with some limitations:
Side note: I have to render the placeholder in both |
@albarin Except for what I mentioned in the P2 comment, this is ready for another review 🙌🏽 |
@dinhtungdu Hey, a few more differences I see with the design:
Thank you! 🙌 |
@vivialice can you confirm the "Price range selector" styled all uppercase is intentional?
@albarin We're discussing this on the Filter Blocks Adjustments i2 P2 post. As other filter blocks also have that update, so I would do it in a separate PR. What do you think? |
@vivialice I'm a bit confused by this. The first sentence state that the FYI, what I'm doing for this PR is:
|
Sure, sounds good 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
Hey! 👋
I think it is fine if we leave the option to stack the inputs but by default show them as inline. In the vertical patterns it might work better so it's good to keep the option.
Yes that is intentional! I am referencing a design file for Gutenberg panels so I have used this style for similar settings across all of them.
Sorry this wasn't clear enough. The Reset button should appear when a selection has been made. |
* Add global styles to Product Categories List block in WC core (#6906) * add side effect to package (#6904) * Add _blank to terms link (#6908) * Only show items if there are multiple packages in the cart (#6899) * Price Filter Block Design update (#6877) * make toggle control full width * add inlineInput attribute * add inlineInput sidebar setting * add inlineInput help text * style the filter button * style price input * wip: reset button * clicking on reset button will reset the price query * support inline input fields * price text styling update * fix reset button font size * add loading placeholder to all elements * fix filter button style * update range slider thumb and track style * fix loading placeholder for non empty query * move reset button into FilterSubmitButton component * try: render placeholder serverside * update filter button label * Revert "try: render placeholder serverside" This reverts commit 98f08ef. * remove LoadingPlaceholder component * remove Price: prefix from the current displayed price range * update labels * extract reset button as a dedicated component * update price text section * update reset button behavior * avoid breaking filter submit button style for other filter blocks * rename block to Filter by Price * fix e2e test * remove border support * adjust padding for elments * rename panel title * Make the inline option enabled by default and fix frontend rendering * Make the `Price Range Selector` uppercase * Show `Reset` button only when a selection has been made * Revert the `save` change to avoid the 'Block Recovery Prompt' Co-authored-by: Alba Rincón <[email protected]> * Release: 8.3.0 (#6897) * Empty commit for release pull request * Bump version numbers and add changelog * Add testing notes * Add global styles to Product Categories List block in WC core * add side effect to package * Update testing instructions * Empty commit * Fix linting * Update zip file with latest changes * Fix linting * Update changelog entries * Bumping version strings to new version. Co-authored-by: github-actions <[email protected]> Co-authored-by: Tarun Vijwani <[email protected]> Co-authored-by: Albert Juhé Lluveras <[email protected]> Co-authored-by: Nadir Seghir <[email protected]> Co-authored-by: Saad Tarhi <[email protected]> * Update version to 8.4.0-dev * Empty commit for release pull request * Add change log * Add testing instructions * Fix the version number in testing instructions * Bumping version strings to new version. Co-authored-by: Albert Juhé Lluveras <[email protected]> Co-authored-by: Seghir Nadir <[email protected]> Co-authored-by: Thomas Roberts <[email protected]> Co-authored-by: Tung Du <[email protected]> Co-authored-by: Alba Rincón <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions <[email protected]> Co-authored-by: Tarun Vijwani <[email protected]> Co-authored-by: Saad Tarhi <[email protected]>
* Add global styles to Product Categories List block in WC core (woocommerce#6906) * add side effect to package (woocommerce#6904) * Add _blank to terms link (woocommerce#6908) * Only show items if there are multiple packages in the cart (woocommerce#6899) * Price Filter Block Design update (woocommerce#6877) * make toggle control full width * add inlineInput attribute * add inlineInput sidebar setting * add inlineInput help text * style the filter button * style price input * wip: reset button * clicking on reset button will reset the price query * support inline input fields * price text styling update * fix reset button font size * add loading placeholder to all elements * fix filter button style * update range slider thumb and track style * fix loading placeholder for non empty query * move reset button into FilterSubmitButton component * try: render placeholder serverside * update filter button label * Revert "try: render placeholder serverside" This reverts commit 98f08ef. * remove LoadingPlaceholder component * remove Price: prefix from the current displayed price range * update labels * extract reset button as a dedicated component * update price text section * update reset button behavior * avoid breaking filter submit button style for other filter blocks * rename block to Filter by Price * fix e2e test * remove border support * adjust padding for elments * rename panel title * Make the inline option enabled by default and fix frontend rendering * Make the `Price Range Selector` uppercase * Show `Reset` button only when a selection has been made * Revert the `save` change to avoid the 'Block Recovery Prompt' Co-authored-by: Alba Rincón <[email protected]> * Release: 8.3.0 (woocommerce#6897) * Empty commit for release pull request * Bump version numbers and add changelog * Add testing notes * Add global styles to Product Categories List block in WC core * add side effect to package * Update testing instructions * Empty commit * Fix linting * Update zip file with latest changes * Fix linting * Update changelog entries * Bumping version strings to new version. Co-authored-by: github-actions <[email protected]> Co-authored-by: Tarun Vijwani <[email protected]> Co-authored-by: Albert Juhé Lluveras <[email protected]> Co-authored-by: Nadir Seghir <[email protected]> Co-authored-by: Saad Tarhi <[email protected]> * Update version to 8.4.0-dev * Empty commit for release pull request * Add change log * Add testing instructions * Fix the version number in testing instructions * Bumping version strings to new version. Co-authored-by: Albert Juhé Lluveras <[email protected]> Co-authored-by: Seghir Nadir <[email protected]> Co-authored-by: Thomas Roberts <[email protected]> Co-authored-by: Tung Du <[email protected]> Co-authored-by: Alba Rincón <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions <[email protected]> Co-authored-by: Tarun Vijwani <[email protected]> Co-authored-by: Saad Tarhi <[email protected]>
Fixes #6841
This PR updates the design of the Filter Products by Price block according to the new design:
Reset
button next to the filter submit button.Go
toApply
.Price:
prefix from the current price range text.Inline input fields
toggle makes sense to you? Happy to update it if you want.Accessibility
prefers-reduced-motion
Other Checks
Screenshots
Testing
Automated Tests
User Facing Testing
Filter Products by Price
block to a page.Inline input fields
only shows when thePrice Range
is Editable.WooCommerce Visibility
Performance Impact
N/A.
Changelog