-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed active facets tap target and drawer scrolling #98
Conversation
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.
Did a first pass and added some comments 👍
<span class="active-facets__button-inner button button--tertiary"> | ||
{%- if filter.min_value.value -%}{{ filter.min_value.value | money }}{%- else -%}{{ 0 | money }}{%- endif -%}-{%- if filter.max_value.value -%}{{ filter.max_value.value | money }}{%- else -%}{{ filter.range_max | money }}{%- endif -%} | ||
{% render 'icon-close-small' %} | ||
</span> | ||
</a> | ||
{%- endif -%} |
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.
On Safari, the background is still scrollable: https://screenshot.click/05-51-wiacu-ueec2.mp4
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.
That's weird. Version? It seems to be working as far as I can tell.
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.
I haven't been able to reproduce it 🤔
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.
🎩 Magic!
🧚
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.
Can't replicate anymore on my iPad either. 👍
Looks good @tyleralsbury. Just have a few notes related to the active facets tap targets; drawer scrolling looks great. FYI All other UI notes have just been added to a polish review here.
|
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.
Other than what Olivia and Sofia mentioned, I don't see any issue.
Should be ok for a second round.
|
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.
Retested and it looks good :)
Haven't been able to reproduce the safari issue
Merged - thanks for the review, y'all! |
* Remove default section in index and product templates for experiment 1 * Add 4th digit to theme version number * Remove release notes * Remove footer blocks * Revert "Remove release notes" This reverts commit ec430c31ef5a4738059dd00036b29992aa4691b6. * Revert "Add 4th digit to theme version number" This reverts commit a301e58a6e1d8ce0a090d0bba460f02b58c29e8f. * Fix whitespace
* Filtering - Fixed a11y issue with tap targets on active filters * Added drawer functionality to handle overflow changes at different breakpoints
Why are these changes introduced?
First part of faceted filtering fast follow fixes. #100
What approach did you take?
Tap targets
Changed up the markup a bit for the pills so that they now have a wrapper
<a>
with a<span>
inside that have the pill styles. The<a>
has padding to ensure that it will always be at least44px
(actually45px
given the current line heights, etc...) to follow accessible tap target principlesSource - w3.org
Scrolling issue
When a drawer is open, the content behind should not be scrollable. The
menu-drawer
custom element was already adding a class for this, but the class wasn't doing anything. I addedoverflow-y: hidden
to prevent vertical scrolling when the class is on the body.Other considerations
The
menu-drawer
custom element is also used for the main menu and the overflow breakpoints are different for the two. I've needed to add a mobile version and a tablet version of the overflow hidden class.Testing
Store
Checklist