Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Global notification and button refactoring #308

Merged
merged 5 commits into from
Feb 22, 2017
Merged

Global notification and button refactoring #308

merged 5 commits into from
Feb 22, 2017

Conversation

msecret
Copy link

@msecret msecret commented Feb 21, 2017

This creates a new prototype notification feature. This is meant to provide feedback about errors and other things to the user on a global level. It's required for the global error handling in the dashboard. It has different parts to it, wrap, message, actions, and dismiss. It also has modifiers; warning, info, error, finish, that link to the existing states in the design system.

The button code was refactored to make it easier to add the action buttons to the notification panel. No code needs to be changed for this to work, but eventually we should remove usa-button code in both cg-site and cg-dashboard. This should be done in a separate PR and go into a large release.

@msecret msecret changed the title Global error Global notification and button refactoring Feb 21, 2017
Marco Segreto added 4 commits February 21, 2017 15:37
Try at global error design component. I think this needs some design
review before going too much further.
To have a outline button with transparent background of the color
of the notification.

To get this to work, I did some work to remove the massive amount
of specificity in the buttons. This was mainly done by removing the
dependency on the `usa-button` classes which have too much specificty.

I also ensured the styleguide uses unmin css because even in production
it seems more useful.

This is a breaking change.
As this will go in a separate branch for a larger release
The 18f styline "name-format" plugin does not work correctly because
the mixin in `actions.scss` complies with it but it still reports
an error. I disabled it until that could be fixed.
@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<link media="all" rel="stylesheet" href="{{ '/css/cloudgov-style-min.css' | path }}">
<link media="all" rel="stylesheet" href="{{ '/css/cloudgov-style.css' | path }}">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, does this simplify the build at all? I think we can drop the compile-css step from https://github.com/18F/cg-style/pull/308/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R16

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed that, good idea.

Can be removed because we're not included compiled assets anymore.
@msecret msecret merged commit 3461fcc into master Feb 22, 2017
@msecret msecret deleted the ms-global_error branch February 22, 2017 00:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants