department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
283 stars 204 forks source link

Search results card design and behavior for urgent care mash-up #11460

Closed mmiddaugh closed 4 years ago

mmiddaugh commented 4 years ago

Issue Description

Implement new design for urgent care mash-up

Updated styling

Top paragraph intro text (now in issue #12061

General styling updates for search results cards

Search result card styling

Community urgent care providers (in VA's network) and urgent care pharmacies (in VA's network)

Cards contain:

Note: Urgent care pharmacies (in VA's network) are currently hidden from the drop-down but are set to return at the end of August. This will ensure the styling and behavior is consistent when they return.

New styling ![new urgent care design](https://user-images.githubusercontent.com/55411834/88706055-91ba4c00-d0cd-11ea-998f-66ecf7b507a3.png)

VA health cards contain:

New styling ![va card design](https://user-images.githubusercontent.com/55411834/88705728-2a040100-d0cd-11ea-87e4-241d79efb974.png)

Other facility types

Search result cards will be handled in a separate issue for VA Benefits, VA cemeteries, Vet Centers and Community care providers (in VA's network)

Updated behavior

Analytics

Front end tasks

Acceptance Criteria

Appendix

Ensure compliance with design specs (expand) - Defined color palette for all elements (foreground, background and fonts) - Defined states - Enabled vs disabled - Hover vs active - Defined margin and padding spacing - Defined fonts and sizes - Defined iconography, as appropriate - Field labels - Error messaging, as appropriate - References to style guide/design system components - Link words and urls - Responsiveness breakpoints - Expected interactive behavior
Ensure your code changes are covered by E2E tests (expand) - Add E2E tests if none exist for this addition/change. - Update existing E2E tests if this code will change functionality. - Include axe checks, including hidden content
Run axe checks using the Chrome or Firefox browser plugin (expand) - Ensure no heading levels are skipped. - Ensure all buttons and labeled inputs use semantic HTML elements. - Ensure all buttons, labeled elements and images are identified using HTML semantic markers or ARIA roles. - Ensure form fields have clearly defined boundaries or outlines. - Ensure form fields do not use placeholder text. - Ensure form fields have highly visible and specific error states.
Test for color contrast and color blindness issues (expand) - All text has appropriate contrast.
Zoom layouts to 400% at 1280px width (expand) - Ensure readability and usability are supported when zoomed up to 400% at 1280px browser width - Ensure no content gets focused offscreen or is hidden from view.
Test with 1 or 2 screen readers (expand) - Ensure the page includes a skip navigation link. - Ensure all links are properly descriptive. - Ensure screen reader users can hear the text equivalent for each image conveying information. - Ensure screen reader users can hear the text equivalent for each image button. - Ensure screen reader users can hear labels and instructions for inputs. - Ensure purely decorative images are not announced by the screenreader.
Navigate using the keyboard only (expand) - Ensure all links (navigation, text and/or image), form controls and page functions can be reached with the tab key in a logical order. - Ensure all links (navigation, text and/or image), form controls and page functions can be triggered with the spacebar, enter key, or arrow keys. - Ensure all interactive elements can be reached with the tab key in a logical order - Ensure all interactive elements can be triggered with the spacebar, enter key, or arrow keys. - Ensure focus is always visible and appears in logical order. - Ensure each interactive element has visible focus state which appears in logical order.

How to configure this issue

davidconlon commented 4 years ago

Revised COVID Update Facility Locator Text.docx

@mmiddaugh approved revised before/after Coronavirus Update text for Facility Locator. Also we need to be sure that this text continues to maintain the Chatbot Flipper function.

mmiddaugh commented 4 years ago

@mpelzsherman @brangi thank you for your excellent collaboration and awesome work. We do need to make a few changes based on our design review:

Changes in the search box

  1. Change labels for search boxes
Spec ![image](https://user-images.githubusercontent.com/55411834/90175050-1a8ae600-dd64-11ea-95f5-5f3b91d08d07.png)

Changes in the search results

Spec ![image](https://user-images.githubusercontent.com/55411834/90175278-6c337080-dd64-11ea-9047-a0516ce96670.png)
Spec ![image](https://user-images.githubusercontent.com/55411834/90175437-a866d100-dd64-11ea-950a-b0af4af050ec.png)

To confirm, search results for community care locations will not use sentence case due to the format of PPMS data. The team determined that the risk of incorrectly handling edge cases, such as acronyms, names like "McDonald" outweighs the benefit of forcing the data into sentence case for consistency.

brangi commented 4 years ago

merged