-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notice refactor #1166
Notice refactor #1166
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it looks good. Just one comment.
The only thing I would say maybe we should think about common things as mixins, although I don't see very many things that can be put into a common mixin. Maybe the different attention/confirmations/information sections, but it's probably fine.
Yeah, I think there is definitely the potential to leverage some mixins. Will leave that for a future enhancement. |
DON'T SQUASH.
Issue #1001
Reworks the structure to incorporate the visible text into the heading structure, instead of around the icon. While I did like the idea of the region beginning with a heading (in the same way I wish item tiles could start with a heading instead of an image), it just started to feel a bit weird not having the visible text as the heading. Hence these changes.
Before:
After
Issue #1150
Normalized all notices and split them apart into separate components.
While there is a little bit of duplication, mainly in terms of the flexbox layout, I find the modules now much easier to reason with compared to the grouped selectors we had before. So it seems like a good tradeoff. We can minimise some duplication with mixins if we like.
Visually page notices are now in a half way state between ds4 and ds6.
We can either
a) leave them as is
b) add color background (like ds6)
c) reinstate the grey border colour and thicker top border using system of variables/properties in the base file (i.e. not like we had before, which created a code split in the ds4 and ds6 files)
I don't consider this as a huge priority right now, and will tackle it either way just before we release.
DS4 Page notice before normalization:
DS4 Page notice after normalization:
DS6 Page Notice