Skip to content
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

Design card and list view toggle and filter for Patterns and Practices pages #2534

Closed
isaacdurazo opened this issue Nov 8, 2022 · 6 comments
Labels
enhancement Any addition or improvement that doesn't fix a code bug or prose inaccuracy Site Design Related to design of the APG site on w3.org built during 2021 redesign project

Comments

@isaacdurazo
Copy link
Member

isaacdurazo commented Nov 8, 2022

Text-based Mockups

These mockups display a search box and a toggle button for cards and list view. The container with the search box and the toggle button is located between the "Read This First" disclaimer and the Patterns and uses a light blue color as the background, the same one we use for the main Nav. The search functions as an in-page filter-as-you-type mechanism. It contains a light gray magnifier icon and the placeholder text "Search Patterns" next to it. Next to the search box, there's a toggle for card vs list view. This toggle uses icons that represent both views.

When the user changes the view to a list, the patterns are all put inside a white container and each one displays its icon (which is half the size smaller) on the left and its title and description on the right. Each one is divided by a subtle gray horizontal line.

Visual Mockups

Card View

APG Patterns Search - Grid View

List View

APG Patterns Search - List View

@isaacdurazo isaacdurazo added Site Design Related to design of the APG site on w3.org built during 2021 redesign project enhancement Any addition or improvement that doesn't fix a code bug or prose inaccuracy agenda Include in upcoming Authoring Practices Task Force meeting and removed agenda Include in upcoming Authoring Practices Task Force meeting labels Nov 8, 2022
@mcking65
Copy link
Contributor

mcking65 commented Nov 9, 2022

Thank you Isaac!

@isaacdurazo wrote:

When the user changes the view to a list, the patterns are all put inside a white container and each one displays its icon (which is half the size smaller) on the left and its title on the right. Descriptions are hidden. Each one is divided by a subtle gray horizontal line.

I think we will still need descriptions in the list view.

On the about page, we might not want to design icons for every topic. Is it feasible to make a good looking view where some items in the list have icons and some do not? Or, should we think of consistency of content for all items in the list as essential? Should we consider imagery as a baseline requirement as well?

Very curious to have input from @shawna-slh.

@isaacdurazo isaacdurazo changed the title Mockups for grid and list view toggle and search in Patterns and Practices pages Mockups for card and list view toggle and search in Patterns and Practices pages Nov 29, 2022
@giacomo-petri
Copy link
Contributor

About the search layout, should we add a darker border around the Search input to meet 1.4.11 SC (https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html), clearly identifying the search input area? This might be even more relevant considering that neither the Search icon (<3) nor the Search placeholder (<4.5) have a sufficient contrast ratio with the white input background.

@isaacdurazo
Copy link
Member Author

Good catch @giacomo-petri! Thanks for the feedback. I will address these and update the mockups.

@a11ydoer
Copy link
Contributor

Feedback - adding h2 accessible/visible name to "search(Filter) patterns" instead of a place holder
@isaacdurazo will update the design

@mcking65 mcking65 changed the title Mockups for card and list view toggle and search in Patterns and Practices pages Mockups for card and list view toggle and filter for Patterns and Practices pages Feb 14, 2023
@mcking65
Copy link
Contributor

mcking65 commented Feb 14, 2023

Summarizing changes from meeting discussions to reflect in redesign:

  • List view will include descriptions
  • Filter box will be preceded by <h2>Filter</h2> that will serve as visible label of the field.

@mcking65 mcking65 removed the agenda Include in upcoming Authoring Practices Task Force meeting label Oct 23, 2023
@ccanash
Copy link

ccanash commented Jun 12, 2024

HI @mcking65 closing this as @isaacdurazo updated the design to address this.

@ccanash ccanash closed this as completed Jun 12, 2024
@mcking65 mcking65 changed the title Mockups for card and list view toggle and filter for Patterns and Practices pages Design card and list view toggle and filter for Patterns and Practices pages Jul 27, 2024
@mcking65 mcking65 added this to the H1/2024 APG Improvements milestone Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any addition or improvement that doesn't fix a code bug or prose inaccuracy Site Design Related to design of the APG site on w3.org built during 2021 redesign project
Projects
Status: In production / Completed
Development

No branches or pull requests

5 participants