This repository has been archived by the owner on Jun 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #800 from massgov/release-5.20.0
Release 5.20.0
- Loading branch information
Showing
53 changed files
with
875 additions
and
623 deletions.
There are no files selected for viewing
Binary file modified
BIN
+13.4 KB
(110%)
backstopjs/reference/regression_page_binder-page-cover_0_document_0_phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+33 KB
(120%)
backstopjs/reference/regression_page_binder-page-cover_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+104 Bytes
(100%)
backstopjs/reference/regression_page_bio-page_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4.84 KB
(100%)
backstopjs/reference/regression_page_organization-boards_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+26.6 KB
(110%)
.../reference/regression_page_organization-elected-official_0_document_0_phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+31.4 KB
(100%)
...reference/regression_page_organization-elected-official_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+159 Bytes
(100%)
backstopjs/reference/regression_page_service_0_document_0_phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+106 Bytes
(100%)
...opjs/reference/regression_template_01-content-types-bio_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-5.34 KB
(94%)
...reference/regression_template_01-content-types-location_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.37 KB
(99%)
.../reference/regression_template_01-content-types-services_0_document_0_phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
styleguide/source/_patterns/02-molecules/icon-link-item.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"item": { | ||
"icon": "@atoms/05-icons/svg-twitter.twig", | ||
"link": { | ||
"href": "https://twitter.com/MassHHS", | ||
"text": "@MassHHS", | ||
"chevron": "" | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
styleguide/source/_patterns/02-molecules/icon-link-item.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
### Description | ||
This is a list item for the list of links with a corresponding icon. | ||
|
||
### Status | ||
* New as of 5.18.1 | ||
* @todo: make styles independent of wrapper. | ||
|
||
### Pattern Contains | ||
* Decorative Link | ||
|
||
### Variables | ||
~~~ | ||
item: { | ||
icon: | ||
type: string (path to SVG icon) / required | ||
link: { | ||
type: decorativeLink / required | ||
} | ||
} | ||
~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<span class="ma__icon-links__icon"> | ||
{% if item.icon %} | ||
{{ icon(item.icon) }} | ||
{% endif %} | ||
</span> | ||
<span class="ma__icon-links__link"> | ||
{% set decorativeLink = item.link %} | ||
{% include "@atoms/decorative-link.twig" %} | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
<section class="ma__icon-links"> | ||
{% if iconLinks.compHeading %} | ||
{% set compHeading = iconLinks.compHeading %} | ||
{% include "@atoms/04-headings/comp-heading.twig" %} | ||
{% endif %} | ||
<ul class="ma__icon-links__items"> | ||
{% for item in iconLinks.items %} | ||
<li class="ma__icon-links__item"> | ||
<span class="ma__icon-links__icon"> | ||
{{ icon(item.icon) }} | ||
</span> | ||
<span class="ma__icon-links__link"> | ||
{% set decorativeLink = item.link %} | ||
{% include "@atoms/decorative-link.twig" %} | ||
</span> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</section> | ||
<section class="ma__icon-links"> | ||
{% if iconLinks.compHeading %} | ||
{% set compHeading = iconLinks.compHeading %} | ||
{% include "@atoms/04-headings/comp-heading.twig" %} | ||
{% endif %} | ||
<ul class="ma__icon-links__items"> | ||
{% block iconLinkItems %} | ||
{% for item in iconLinks.items %} | ||
<li class="ma__icon-links__item"> | ||
{% include "@molecules/icon-link-item.twig" %} | ||
</li> | ||
{% endfor %} | ||
{% endblock %} | ||
</ul> | ||
</section> |
116 changes: 59 additions & 57 deletions
116
styleguide/source/_patterns/02-molecules/section-links.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,59 @@ | ||
{% set titleId = "section_titles_" ~ sectionLinks.id %} | ||
|
||
<section class="ma__section-links js-accordion"> | ||
<div class="ma__section-links__content"> | ||
{% if sectionLinks.catIcon %} | ||
<div class="ma__section-links__icon"> | ||
{% set catIcon = sectionLinks.catIcon %} | ||
{% include "@atoms/05-icons/cat-icon.twig" %} | ||
</div> | ||
{% endif %} | ||
{# Backward Compatible with v5.8 - subTitle replaced by level #} | ||
{% if sectionLinks.subTitle %} | ||
{% set sectionLinks = sectionLinks|merge({"level": 3}) %} | ||
{% endif %} | ||
|
||
{% set headingLevel = sectionLinks.level ? : 2 %} | ||
<h{{ headingLevel }} class="ma__section-links__title js-accordion-link" id="{{ titleId }}"> | ||
{% set decorativeLink = sectionLinks.title %} | ||
{% include "@atoms/decorative-link.twig" %} | ||
</h{{ headingLevel}}> | ||
<nav class="ma__section-links__toggle-content js-accordion-content" aria-labelledby="{{ titleId }}"> | ||
{% if sectionLinks.description %} | ||
<p class="ma__section-links__description">{{sectionLinks.description}}</p> | ||
{% endif %} | ||
<div class="ma__section-links__mobile-title"> | ||
{% set decorativeLink = { | ||
"type": "", | ||
"href": sectionLinks.title.href, | ||
"text": "Learn More", | ||
"info": "learn more about " ~ sectionLinks.title.text } | ||
%} | ||
{% include "@atoms/decorative-link.twig" %} | ||
</div> | ||
<ul class="ma__section-links__items"> | ||
{% if sectionLinks.type == "callout" %} | ||
{% for calloutLink in sectionLinks.links %} | ||
<li class="ma__section-links__item"> | ||
{% include "@molecules/callout-link.twig" %} | ||
</li> | ||
{% endfor %} | ||
{% else %} | ||
{% for decorativeLink in sectionLinks.links %} | ||
<li class="ma__section-links__item"> | ||
{% include "@atoms/decorative-link.twig" %} | ||
</li> | ||
{% endfor %} | ||
{% endif %} | ||
</ul> | ||
</nav> | ||
{% if sectionLinks.seeAll %} | ||
<div class="ma__section-links__footer"> | ||
{% set decorativeLink = sectionLinks.seeAll %} | ||
{% include "@atoms/decorative-link.twig" %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
</section> | ||
{% set titleId = "section_titles_" ~ sectionLinks.id %} | ||
|
||
<section class="ma__section-links js-accordion"> | ||
<div class="ma__section-links__content"> | ||
{% if sectionLinks.catIcon %} | ||
<div class="ma__section-links__icon"> | ||
{% set catIcon = sectionLinks.catIcon %} | ||
{% include "@atoms/05-icons/cat-icon.twig" %} | ||
</div> | ||
{% endif %} | ||
{# Backward Compatible with v5.8 - subTitle replaced by level #} | ||
{% if sectionLinks.subTitle %} | ||
{% set sectionLinks = sectionLinks|merge({"level": 3}) %} | ||
{% endif %} | ||
|
||
{% set headingLevel = sectionLinks.level ? : 2 %} | ||
<h{{ headingLevel }} class="ma__section-links__title js-accordion-link" id="{{ titleId }}"> | ||
{% set decorativeLink = sectionLinks.title %} | ||
{% include "@atoms/decorative-link.twig" %} | ||
</h{{ headingLevel}}> | ||
<nav class="ma__section-links__toggle-content js-accordion-content" aria-labelledby="{{ titleId }}"> | ||
{% if sectionLinks.description %} | ||
<p class="ma__section-links__description">{{sectionLinks.description}}</p> | ||
{% endif %} | ||
<div class="ma__section-links__mobile-title"> | ||
{% set decorativeLink = { | ||
"type": "", | ||
"href": sectionLinks.title.href, | ||
"text": "Learn More", | ||
"info": "learn more about " ~ sectionLinks.title.text } | ||
%} | ||
{% include "@atoms/decorative-link.twig" %} | ||
</div> | ||
<ul class="ma__section-links__items"> | ||
{% block sectionLinks %} | ||
{% if sectionLinks.type == "callout" %} | ||
{% for calloutLink in sectionLinks.links %} | ||
<li class="ma__section-links__item"> | ||
{% include "@molecules/callout-link.twig" %} | ||
</li> | ||
{% endfor %} | ||
{% else %} | ||
{% for decorativeLink in sectionLinks.links %} | ||
<li class="ma__section-links__item"> | ||
{% include "@atoms/decorative-link.twig" %} | ||
</li> | ||
{% endfor %} | ||
{% endif %} | ||
{% endblock %} | ||
</ul> | ||
</nav> | ||
{% if sectionLinks.seeAll %} | ||
<div class="ma__section-links__footer"> | ||
{% set decorativeLink = sectionLinks.seeAll %} | ||
{% include "@atoms/decorative-link.twig" %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.