Commit 25dd2c7d by Brian Talbot

studio - alerts: synced up example HTML to show advanced settings live…

studio - alerts: synced up example HTML to show advanced settings live notification, aria roles, and action classes; integrated typography mixins
parent 0c6c7868
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
@include box-sizing(border-box); @include box-sizing(border-box);
.copy { .copy {
@include font-size(13); @extend .t-copy-sub2;
} }
} }
...@@ -184,12 +184,12 @@ ...@@ -184,12 +184,12 @@
} }
.action-primary { .action-primary {
@include font-size(13); @extend .t-action3;
font-weight: 600; font-weight: 600;
} }
.action-secondary { .action-secondary {
@include font-size(13); @extend .t-action3;
} }
} }
} }
...@@ -367,12 +367,12 @@ ...@@ -367,12 +367,12 @@
} }
.copy { .copy {
@include font-size(13); @extend .t-copy-sub2;
width: flex-grid(10, 12); width: flex-grid(10, 12);
color: $gray-l2; color: $gray-l2;
.title { .title {
@include font-size(14); @extend .t-title-4;
margin-bottom: 0; margin-bottom: 0;
color: $white; color: $white;
} }
...@@ -409,13 +409,13 @@ ...@@ -409,13 +409,13 @@
.action-primary { .action-primary {
@include blue-button(); @include blue-button();
@include font-size(13); @extend .t-action3;
border-color: $blue-d2; border-color: $blue-d2;
font-weight: 600; font-weight: 600;
} }
.action-secondary { .action-secondary {
@include font-size(13); @extend .t-action3;
} }
} }
...@@ -504,7 +504,7 @@ ...@@ -504,7 +504,7 @@
// adopted alerts // adopted alerts
.alert { .alert {
@include font-size(14); @extend .t-copy-sub2;
@include box-sizing(border-box); @include box-sizing(border-box);
@include clearfix(); @include clearfix();
margin: 0 auto; margin: 0 auto;
...@@ -530,7 +530,7 @@ ...@@ -530,7 +530,7 @@
} }
.copy { .copy {
@include font-size(13); @extend .t-copy-sub2;
width: flex-grid(10, 12); width: flex-grid(10, 12);
color: $gray-l2; color: $gray-l2;
...@@ -568,12 +568,12 @@ ...@@ -568,12 +568,12 @@
} }
.action-primary { .action-primary {
@include font-size(13); @extend .t-action3;
font-weight: 600; font-weight: 600;
} }
.action-secondary { .action-secondary {
@include font-size(13); @extend .t-action3;
} }
} }
} }
...@@ -730,7 +730,7 @@ body.uxdesign.alerts { ...@@ -730,7 +730,7 @@ body.uxdesign.alerts {
border-radius: 3px; border-radius: 3px;
background: #fbf6e1; background: #fbf6e1;
// background: #edbd3c; // background: #edbd3c;
font-size: 14px; @extend .t-copy-sub1;
@include clearfix; @include clearfix;
.alert-message { .alert-message {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// ==================== // ====================
// headings/titles // headings/titles
.t-title-1, .t-title-2, .t-title-3, .t-title-4, .t-title-5, .t-title-5 { .t-title-1, .t-title-2, .t-title-3, .t-title-4, .t-title-5 {
color: $gray-d3; color: $gray-d3;
} }
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
} }
.t-title-4 { .t-title-4 {
@include font-size(14);
} }
.t-title-5 { .t-title-5 {
...@@ -82,4 +82,4 @@ ...@@ -82,4 +82,4 @@
// misc // misc
.t-icon { .t-icon {
line-height: 0; line-height: 0;
} }
\ No newline at end of file
...@@ -114,6 +114,7 @@ ...@@ -114,6 +114,7 @@
<li><a href="#alert-announcement2" class="show-alert">Show Announcement</a></li> <li><a href="#alert-announcement2" class="show-alert">Show Announcement</a></li>
<li><a href="#alert-announcement1" class="show-alert">Show Announcement with Actions</a></li> <li><a href="#alert-announcement1" class="show-alert">Show Announcement with Actions</a></li>
<li><a href="#alert-activation" class="show-alert">Show Activiation</a></li> <li><a href="#alert-activation" class="show-alert">Show Activiation</a></li>
<li><a href="#alert-threeActions" class="show-alert">Alert with three actions</a></li>
</ul> </ul>
</section> </section>
...@@ -129,6 +130,10 @@ ...@@ -129,6 +130,10 @@
<ul> <ul>
<li> <li>
<a href="#notification-changesMade" class="show-notification">Show Changes Made (used in Advanced Settings)</a>
<a href="#notification-changesMade" class="hide-notification">Hide Changes Made (used in Advanced Settings)</a>
</li>
<li>
<a href="#notification-change" class="show-notification">Show Change Warning</a> <a href="#notification-change" class="show-notification">Show Change Warning</a>
<a href="#notification-change" class="hide-notification">Hide Change Warning</a> <a href="#notification-change" class="hide-notification">Hide Change Warning</a>
</li> </li>
...@@ -151,6 +156,10 @@ ...@@ -151,6 +156,10 @@
<a href="#notification-help" class="show-notification">Show Help</a> <a href="#notification-help" class="show-notification">Show Help</a>
<a href="#notification-help" class="hide-notification">Hide Help</a> <a href="#notification-help" class="hide-notification">Hide Help</a>
</li> </li>
<li>
<a href="#notification-threeActions" class="show-notification">Show Notification with three actions</a>
<a href="#notification-threeActions" class="hide-notification">Hide Notification with three actions</a>
</li>
</ul> </ul>
</section> </section>
...@@ -182,6 +191,33 @@ ...@@ -182,6 +191,33 @@
</%block> </%block>
<%block name="view_alerts"> <%block name="view_alerts">
<!-- alert: 3 actions -->
<div class="wrapper wrapper-alert wrapper-alert-warning" id="alert-threeActions">
<div class="alert warning has-actions">
<i class="ss-icon ss-symbolicons-block icon icon-warning">&#x26A0;</i>
<div class="copy">
<h2 class="title title-3">You are editing a draft</h2>
<p class="message">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.</p>
</div>
<nav class="nav-actions">
<h3 class="sr">Alert Actions</h3>
<ul>
<li class="nav-item">
<a href="#" class="action action-save action-primary">Save Draft</a>
</li>
<li class="nav-item">
<a href="#" class="action action-cancel action-secondary">Disgard Draft</a>
</li>
<li class="nav-item">
<a href="#" class="action action-secondary">Do Something Elsee</a>
</li>
</ul>
</nav>
</div>
</div>
<!-- alert: you're editing a draft --> <!-- alert: you're editing a draft -->
<div class="wrapper wrapper-alert wrapper-alert-warning" id="alert-draft"> <div class="wrapper wrapper-alert wrapper-alert-warning" id="alert-draft">
<div class="alert warning has-actions"> <div class="alert warning has-actions">
...@@ -196,10 +232,10 @@ ...@@ -196,10 +232,10 @@
<h3 class="sr">Alert Actions</h3> <h3 class="sr">Alert Actions</h3>
<ul> <ul>
<li class="nav-item"> <li class="nav-item">
<a href="#" class="button save-button action-primary">Save Draft</a> <a href="#" class="action action-save action-primary">Save Draft</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a href="#" class="button cancel-button action-secondary">Disgard Draft</a> <a href="#" class="action action-cancel action-secondary">Disgard Draft</a>
</li> </li>
</ul> </ul>
</nav> </nav>
...@@ -220,10 +256,10 @@ ...@@ -220,10 +256,10 @@
<h3 class="sr">Alert Actions</h3> <h3 class="sr">Alert Actions</h3>
<ul> <ul>
<li class="nav-item"> <li class="nav-item">
<a href="#" class="button save-button action-primary">Go to Newer Version</a> <a href="#" class="action action-save action-primary">Go to Newer Version</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a href="#" class="button cancel-button action-secondary">Continue Editing</a> <a href="#" class="action action-cancel action-secondary">Continue Editing</a>
</li> </li>
</ul> </ul>
</nav> </nav>
...@@ -297,7 +333,7 @@ ...@@ -297,7 +333,7 @@
<h3 class="sr">Alert Actions</h3> <h3 class="sr">Alert Actions</h3>
<ul> <ul>
<li class="nav-item"> <li class="nav-item">
<a href="#" class="button cancel-button action-primary">Cancel Your Submission</a> <a href="#" class="action action-cancel action-primary">Cancel Your Submission</a>
</li> </li>
</ul> </ul>
</nav> </nav>
...@@ -367,13 +403,13 @@ ...@@ -367,13 +403,13 @@
<%block name="view_notifications"> <%block name="view_notifications">
<!-- notification: change has been made and a save is needed --> <!-- notification: change has been made and a save is needed -->
<div class="wrapper wrapper-notification wrapper-notification-change" id="notification-change" role="status"> <div class="wrapper wrapper-notification wrapper-notification-change" aria-hidden="true" role="dialog" aria-labelledby="notification-change-title" aria-describedby="notification-change-description" id="notification-change">
<div class="notification change has-actions"> <div class="notification change has-actions">
<i class="ss-icon ss-symbolicons-block icon icon-change">&#x1F4DD;</i> <i class="ss-icon ss-symbolicons-block icon icon-change">&#x1F4DD;</i>
<div class="copy"> <div class="copy">
<h2 class="title title-3">You've Made Some Changes</h2> <h2 class="title title-3" id="notification-change-title">You've Made Some Changes</h2>
<p class="message">Your changes will not take effect until you <strong>save your progress</strong>.</p> <p class="message" id="notification-change-description">Your changes will not take effect until you <strong>save your progress</strong>.</p>
</div> </div>
<nav class="nav-actions"> <nav class="nav-actions">
...@@ -390,6 +426,57 @@ ...@@ -390,6 +426,57 @@
</div> </div>
</div> </div>
<!-- notification: three actions example -->
<div class="wrapper wrapper-notification wrapper-notification-change" aria-hidden="true" role="dialog" aria-labelledby="notification-threeActions-title" aria-describedby="notification-threeActions-description" id="notification-threeActions">
<div class="notification change has-actions">
<i class="ss-icon ss-symbolicons-block icon icon-change">&#x1F4DD;</i>
<div class="copy">
<h2 class="title title-3" id="notification-threeActions-title">You've Made Some Changes</h2>
<p class="message" id="notification-threeActions-description">Your changes will not take effect until you <strong>save your progress</strong>.</p>
</div>
<nav class="nav-actions">
<h3 class="sr">Notification Actions</h3>
<ul>
<li class="nav-item">
<a href="#" class="action-primary">Save Changes</a>
</li>
<li class="nav-item">
<a href="#" class="action-secondary">Don't Save</a>
</li>
<li class="nav-item">
<a href="#" class="action-secondary">Do something else</a>
</li>
</ul>
</nav>
</div>
</div>
<!-- notification: change has been made and a save is needed -->
<div class="wrapper wrapper-notification wrapper-notification-warning" aria-hidden="true" role="dialog" aria-labelledby="notification-changesMade-title" aria-describedby="notification-changesMade-description" id="notification-changesMade">
<div class="notification warning has-actions">
<i class="ss-icon ss-symbolicons-block icon icon-warning">&#x26A0;</i>
<div class="copy">
<h2 class="title title-3" id="notification-changesMade-title">You've Made Some Changes</h2>
<p id="notification-changesMade-description">Your changes will not take effect until you <strong>save your progress</strong>. Take care with key and value formatting, as validation is <strong>not implemented</strong>.</p>
</div>
<nav class="nav-actions">
<h3 class="sr">Notification Actions</h3>
<ul>
<li class="nav-item">
<a href="" class="action action-save action-primary">Save Changes</a>
</li>
<li class="nav-item">
<a href="" class="action action-cancel action-secondary">Cancel</a>
</li>
</ul>
</nav>
</div>
</div>
<!-- notification: newer version exists --> <!-- notification: newer version exists -->
<div class="wrapper wrapper-notification wrapper-notification-warning" id="notification-version" aria-hidden="true" role="dialog" aria-labelledby="notification-warning-title" aria-describedby="notification-warning-description"> <div class="wrapper wrapper-notification wrapper-notification-warning" id="notification-version" aria-hidden="true" role="dialog" aria-labelledby="notification-warning-title" aria-describedby="notification-warning-description">
<div class="notification warning has-actions"> <div class="notification warning has-actions">
...@@ -404,10 +491,10 @@ ...@@ -404,10 +491,10 @@
<h3 class="sr">Notification Actions</h3> <h3 class="sr">Notification Actions</h3>
<ul> <ul>
<li class="nav-item"> <li class="nav-item">
<a href="#" class="button save-button action-primary">Go to Newer Version</a> <a href="#" class="action action-save action-primary">Go to Newer Version</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a href="#" class="button cancel-button action-secondary">Continue Editing</a> <a href="#" class="action action-cancel action-secondary">Continue Editing</a>
</li> </li>
</ul> </ul>
</nav> </nav>
...@@ -428,10 +515,10 @@ ...@@ -428,10 +515,10 @@
<h3 class="sr">Notification Actions</h3> <h3 class="sr">Notification Actions</h3>
<ul> <ul>
<li class="nav-item"> <li class="nav-item">
<a href="#" class="action-primary">Yes, I want to Edit X</a> <a href="#" class="action action-proceed action-primary">Yes, I want to Edit X</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a href="#" class="action-secondary">No, I do not</a> <a href="#" class="action action-cancel action-secondary">No, I do not</a>
</li> </li>
</ul> </ul>
</nav> </nav>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment