cfpb / design-manual

⚠️ THIS REPO IS DEPRECATED ⚠️ A set of design principles and standards for the Consumer Financial Protection Bureau.
https://cfpb.github.io/design-manual/
Creative Commons Zero v1.0 Universal
98 stars 71 forks source link

Modals page is broken #473

Closed marteki closed 6 years ago

marteki commented 7 years ago

Placing this here so I don't forget about it, since I can't address it right now: the Style section of the Modals page is broken, and isn't displaying hexadecimal color codes.

screen shot 2017-04-06 at 2 42 07 pm

nataliafitzgerald commented 7 years ago

@marteki @anselmbradford is working on bringing this pattern into Capital Framework and we too noticed that the page is in need of some attention. Unfortunately we don't have the bandwidth to take this on right now.

@anselmbradford - In building this pattern could you document the specs here so that someone can easily pick up this task when they have the time?

anselmbradford commented 6 years ago

What should the space between the modal and left/right edge of the window be? I'm using 5% for the top, left, and right. Which means it's narrower when the page is small, and wider when the page is large:

screen shot 2017-09-11 at 3 29 32 pm

screen shot 2017-09-11 at 3 29 42 pm

nataliafitzgerald commented 6 years ago

@anselmbradford

I believe @kurzn worked on the development of this pattern. @kurzn - Can you take a look and provide feedback?

nataliafitzgerald commented 6 years ago

Also, it looks like there are some design specs on the design manual page: https://cfpb.github.io/design-manual/page-components/modals.html

screen shot 2017-09-11 at 7 43 13 pm

If the max width is 630px for large screens that would mean the text block is 570px and there is 30px of padding on the left and right for a total of 630px width. Makes sense.

anselmbradford commented 6 years ago

Heh, yeah, I realized the specs had them after all, sorry about that!

marteki commented 6 years ago

Came across this old, still open bug report I made. It's been fixed! 🎉

screen shot 2018-08-27 at 7 23 04 pm