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
New design for alerts and notifications #7874
Conversation
The UI screenshot diffs are here: http://builds-artifacts.piwik.org/ui-tests.redesign-alerts/12385.7/screenshot-diffs/diffviewer.html The diff for the demo page is here |
Looks good to me. I guess have to wait until the icons are done, then it can be merged. |
I don't think we need to wait for the icons, they are needed everywhere else in Piwik too. Some alerts were already redesigned in the last release (e.g. the updater) even though we don't have the icons. They can come later (and by the way previously alerts didn't have any icons anyway). By the way maybe let's give some time to others to see the PR before merging just in case? (~1 day?) |
No worries, let me know if you want to merge whenever it's ready. |
@@ -23,6 +23,10 @@ | |||
@theme-color-widget-title-text: @theme-color-text; | |||
@theme-color-widget-title-background: @theme-color-background-tinyContrast; | |||
|
|||
@theme-color-success: #60AD61; | |||
@theme-color-warning: #DF9D27; | |||
@theme-color-danger: #E0645D; |
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.
We should put this kinda stuff as well to a advanced.less
or _colors.less
in #7876
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.
+1
Are the colors like this wanted/defined by Rafa? The contrast seems to be a bit low and it's a bit hard to read. Or is it just me? |
Eg in this screenshot shouldn't it rather use an error color? http://builds-artifacts.piwik.org/ui-tests.redesign-alerts/12385.7/processed-ui-screenshots/Installation_db_setup_fail.png |
In the screenshot you linked to it's the form that uses the warning class, not error. We could fix that though (I have a branch WIP for forms redesign). The error (red) + info (grey) were picked from the updater redesign, the rest need to be fixed with the latest screenshots (didn't have them at the time I did this change). Will change the colors using the latest screenshots! |
…+ simplified Less rules
I still find the contrast not ideal (still hard to read for me) but it might be just my eyes or screen. otherwise 👍 |
New design for alerts and notifications
👍 maybe the warning color has not enough contrast... we can adjust later after seeing it in action |
#7585
The new design was proposed by Rafa's mockup for the installer, updater and admin screens (example here): I have applied the same consistent style everywhere.
I have also simplified Less rules as much as possible: UI notifications now use alert CSS classes. To make things clear:
Screenshot:
Code:
Those are based on Bootstrap alerts (but FYI we are still not using Bootstrap).
The alerts currently lack the icons, the new icon set is under development.