Closed blilianyu closed 8 months ago
For all content types
New component - need guidance
Adding an image for our hover states for the page options. It is basically the same treatment as a text link but WITHOUT the underline.
Can we use the token names for this type of thing - (primary/secondary/accent) etc - we dont use hex just the token names. thks!
Yeah, it pre-populates for a plugin I use in Sketch. But I'll update.
This is on hold for the DS - it is not a component but rather 2 icons on cancer.gov implemented through https://github.com/NCIOCPL/cgov-digital-platform/issues/3256
This should be included in a future template ticket (#385)
The outstanding question for whether we move forward with this ticket is: Do we create a DS component for page options (i.e. print and email icons) and create a page in the DS with documentation/guidance and code?
Leaning toward this not as DS component but documented as part of #385. Confirming with team then will closing out.
Update based on 6/9/22 meeting with design team:
@laurelthrash , closing this ticket as we have implemented the page options in cgov-digital-platform
!
Build Page Options component based on design specs/requirements documented in this ticket
Design Definition of Done
When all criteria below are met.
Baseline Discovery (add any additional info or links)
Design
USWDS Component Equivalent
Is this a USWDS component? If so - are there variants? If we are creating something new, provide links to what it is based off of in resources section
New component
Related USWDS Links: Here goes a URL to an existing web page
Styling:
Anatomy of a component
Usage
When to use component and when to use variant(s) Ex: Use primary button over secondary
Style Guide Dos and Donts Ex: Don't have 1 button in CTA strip
Behaviors
Summary of state changes and behaviors. AC's are more detailed.
Invision Mockups:
Here goes a URL to or the name of the mockup(s) in inVision to include hex codes, etc.
Notion Documentation Additional background information for requirements:
*https://www.notion.so/Page-Options-a487250b2be542c4b034b67adddb3fe7
Notes
Some complementary notes if necessary:
Guidance Text:
When to use this component:
Use the print and/or email icons to include a way for users to print or share an email URL of the content page they are currently on. There are two icons available: print and email.
Usability Guidance
These icons should only be used on desktop and tablet displays. These icons should not be displayed when user is viewing a page on mobile. The print option should default to open the browser's native print preview. The email option should default to "mailto"
Acceptance Criteria for Behaviors
If a component changes its between breakpoints, or things show/hide, that gets captured here
Solution
Prerequisites
required dependency for identifying the problem, scope and then solution for this issue
[ ] Short Spike Description - Issue #9999
Tasks