cfpb / capital-framework

The Consumer Financial Protection Bureau's user interface framework
https://cfpb.github.io/capital-framework/
Creative Commons Zero v1.0 Universal
54 stars 29 forks source link

Should notification be constrained by max-width? #886

Open anselmbradford opened 5 years ago

anselmbradford commented 5 years ago

cf-layout adds a default max-width for a number of elements that appear under its purview. Regs3k has a full-width-text molecule mixed in with a notification for the purpose of adding this same max-width. Should we add that max-width as a default behavior for notifications here and remove the mixed in class in cfgov-refresh?

Scotchester commented 5 years ago

I think this is a reasonable idea. In a bordered/backgrounded box context like notifications, having the box go all the way across but the paragraph be width constrained looks a bit odd.