-
Notifications
You must be signed in to change notification settings - Fork 179
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
Add the Safe browsing filter #636
Comments
I think we'll need a Some notes about accessibility for whomever implements this: when a popover is opened using the keyboard, I think the logical thing to focus when it opens is the toggle. That means the context of the description visually above the toggle could be lose. We'll want to make sure that's included in the label of the toggle somehow, I think? |
I just commented something related to popover interactions on mobile in WordPress/openverse-frontend#541, and now rambling around the idea of moving the filter to the filter sidebar. That will simplify the interaction on desktop and mobile, and we can move it to the end of the list since it is a sensitive criterion.
I am not sure about focusing the toggle first. The word Safe browsing is not completely clear and it makes sense to me to focus the description first. However, and based on the idea dropped above, I wonder how the a11y navigation works among filters. Navigating per each checkbox sounds demanding if you want to reach the last category or any filter nearby the end. In that case, I wonder how feasible is to implement a navigation per category, and then enter into it to navigate between the filters. In that way, we can show all filters and allow an easiest navigation. Here is a quick draft of what I am saying. |
You're describing the same "composite" concept that we discussed for the audio results. I think it's okay to use, but I'm not sure, it might be unusual for a form. The WAI-ARIA examples about grouping form items doesn't mention doing anything like that: https://www.w3.org/WAI/tutorials/forms/grouping/ Gutenberg's block settings sidebar also doesn't do anything like this, but it does allow for collapsing groups of settings that could make navigating through all the settings easier. |
Right, that makes sense. I think that waiting for navigational data will help us to figure out what is more beneficial. Going back to the feature. What do you think of the idea below?
|
I discussed this with @panchovm in private and realized I was misunderstanding what "sensitive" meant. We want to make it hard for users to accidentally turn this filter off, so putting it at the end makes it harder to find and therefore harder to accidentally toggle. |
Looks good with the toggle button if we go with that proposal. Regarding the move to the filter sidebar, as there are many sources, this filter will end well below, so I think it can be even more discreet than the link with the popover. |
The Releases file has been updated with this change on desktop and mobile. The toggle component is from the WP Design Library. |
can i work on this? |
@anton202 Sure, you can work on this. The team is going to be discussion the handling of 'sensitive' content this week and may make some changes to the language of this control. For now, if you do work on this please use the phrase 'sensitive content' instead of 'mature content' where relevant. Thank you! |
* Remove second the * Add before & after post counts * Add postgres result operator * Add record reporting function * Use postgres result operator * Don't render native objects, cast strings The HTTP operators and sensors will freak out and fail if this is enabled, so we need to have it disabled at the DAG level and parse the XComs by hand instead. * Remove ~, at note about exactness * Add tests for PostgresResultOperator * Add tests for record reporting step * Use slack markdown not *actual* markdown * Add missing it Co-authored-by: Staci Cooper <63313398+stacimc@users.noreply.github.com> * Use common openledger API connection ID from constants * Simplify record reporting logic Co-authored-by: Staci Cooper <63313398+stacimc@users.noreply.github.com>
Closing, this was redesigned and refined as part of #791 |
Problem
We need to add a filter for showing/hiding mature content in the search results. We discussed time ago to not include the filter in the filter sidebar as it is a sensitive criterion.
Alternatives
The proposal shows a Safe browsing link that opens a popover showing a description and a toggle filter. The interaction goes as it follows:
dark-charcoal
.CleanShot.2021-12-20.at.10.45.55.mp4
Additional context
The popover design has a shadow popover style from the WordPress Design Library.
The text was updated successfully, but these errors were encountered: