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

Commit

Permalink
Merge pull request #839 from massgov/release-5.24.0
Browse files Browse the repository at this point in the history
Release 5.24.0
  • Loading branch information
mrossi113 committed May 16, 2018
2 parents d520286 + defb31c commit d18569b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 17 deletions.
5 changes: 5 additions & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
**For example**
- DP-1234: The short description text on a [service detail](http://mayflower.digital.mass.gov/?p=pages-detail-for-service-howto-location) page banner ([@organisms/by-template/page-banner](http://mayflower.digital.mass.gov/?p=organisms-page-banner)) should now render ([PR #493](https://github.com/massgov/mayflower/pull/493))

## 5.24.0 (5/16/2018)

### Fixed
- DP-8956: Update contact us to provide a way to keep address above other information even if there is only two contact groups.

## 5.23.0 (5/15/2018)

### Added
Expand Down
2 changes: 1 addition & 1 deletion styleguide/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@massds/mayflower",
"description": "Open source UI components and visual style guide for Massachusetts government websites",
"version": "5.23.0",
"version": "5.24.0",
"author": "Massachusetts Digital Services (MDS)",
"repository": {
"type": "git",
Expand Down
6 changes: 6 additions & 0 deletions styleguide/source/_patterns/02-molecules/contact-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ contactUs: {
subTitle: {
type: columnHeading / optional
}
showMore: {
type: boolean / optional
}
hideSecondary: {
type: boolean / optional
}
level:
type: number / optional
contactName:
Expand Down
34 changes: 18 additions & 16 deletions styleguide/source/_patterns/02-molecules/contact-us.twig
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,24 @@
{% endfor %}
{% endblock %}

{# Show 3rd+ contact groups inside of accordion (if they exist) #}
<div class="ma__contact-us__extra js-accordion-content">
{% block secondaryContactGroups %}
{% for group in contactUs.groups[2:last] %}
{% set contactGroup = group|merge({
"level": groupHeading,
"contactName": contactName }) %}
{% include "@molecules/contact-group.twig" %}
{% endfor %}
{% endblock %}
</div>
<div class="ma__contact-us__expand">
<button type="button" class="js-accordion-link">
<span>more</span><span>less</span> contact info
</button>
</div>
{% if not contactUs.hideSecondary %}
{# Show 3rd+ contact groups inside of accordion (if they exist) #}
<div class="ma__contact-us__extra js-accordion-content">
{% block secondaryContactGroups %}
{% for group in contactUs.groups[2:last] %}
{% set contactGroup = group|merge({
"level": groupHeading,
"contactName": contactName }) %}
{% include "@molecules/contact-group.twig" %}
{% endfor %}
{% endblock %}
</div>
<div class="ma__contact-us__expand">
<button type="button" class="js-accordion-link">
<span>more</span><span>less</span> contact info
</button>
</div>
{% endif %}
{% else %}
<div class="ma__contact-us__content js-accordion-content">
<div class="ma__contact-us__content-wrap">
Expand Down

0 comments on commit d18569b

Please sign in to comment.