-
Notifications
You must be signed in to change notification settings - Fork 40
Pair to Define Toggle Control #2889
Comments
Last sprint, we found that the component we thought was an existing toggle was actually a tab in disguise. We also identified styling new things as an area of low confidence on the team in last sprint's workshop, so this makes a great opportunity to work on both areas. The upcoming disbursement data wireframes incorporate toggle components, so Shannon and I will pair through styling a new toggle component for the site together. |
@jenniferthibault Now that we've defined what the toggle should look like, what's the next step to getting it in the style guide? |
Next steps would be to:
I often find that it's helpful to have whoever styled the thing pair with whoever is building the thing in code to look at an example of the component when they're nearing a first draft, but before filing a pull request. This helps make sure you're both on the same page, and is a good chance to make sure everything looks and works like you expected it to early on.
This is how I've done it before, but of course you all will find what works for you. @mcharg are you up for updating this issue with the items from step 1? I'd also be glad to give it a first pass if you'd rather see an example first. |
@jenniferthibault Yes, I can do #1. |
Parameters that informed the design choices
Default StatesDesktopMobileImages instead of textPrototype for interactivityDesktop: https://ofxchl.axshare.com/#g=1&p=toggle&view=default Specifications
|
@mcharg this is great, especially how you're showing interaction prototypes and referencing other patterns that set the styles for this one. One way to make that stronger would be to link references to those patterns to their pages in the style guide.
The only parameter I'd add is that we also need this toggle to accept icons as the content, instead of text in some instances. I'd add that to the list with an example prototype or screenshot. @master12 as the receiver and user of these notes, is there any info missing or anything you'd do differently? |
Created #2911 to address step 2 above. |
Created #2918 to address step 3 above. |
@master12 Do you have any feedback on the specifications? |
A couple questions:
Thats what I have so far. |
|
I will check what the breakpoint is we use now and go with that. There are general guidelines so I assume we are using that. |
Your breakpoints are defined in the .scss here: https://github.com/18F/doi-extractives-data/blob/dev/_sass/_grid.scss#L8
|
@jenniferthibault Is there a rough translation for how many pixels = an em? |
@mcharg to answer your question, I've been digging myself into a rabbit hole on this and could use some help from @mentastc . In the expressions copied above, does Sharing my reading list:
|
@jenniferthibault and @mcharg I believe you're looking at Sass The values you see in the Sass file should be pixel values. I checked this out and found an obvious breakpoint at |
I updated the specs to reflect the 768 px breakpoint. |
This will be a test for processes for creating new visual design.
The text was updated successfully, but these errors were encountered: