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

Release 5.29.0 #866

Merged
merged 12 commits into from
Jun 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ 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.29.0 (6/20/2018)

### Added
- DP-9146/DP-8825: Adds teaser listing group organism to apply accordion behavior to multiple teaser listings at once.

### Changed
- DP-9243: MF fix info details to show contact and related in sidebar as well as bottom on desktop.

### Removed
- DP-1234: Removed alt value from the state seal since the text "Mass.gov" is duplicate to the content in the followed <span>.


## 5.28.0 (6/13/2018)

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.28.0",
"version": "5.29.0",
"author": "Massachusetts Digital Services (MDS)",
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="ma__site-logo">
<a href="{{ url.domain }}/" title="Mass.gov home page">
<img src="{{ urlDomain ~ '/' ~ directory }}/images/stateseal.png" alt="Mass.gov" height="45" />
<img src="{{ urlDomain ~ '/' ~ directory }}/images/stateseal.png" alt="" height="45" />
<span>Mass.gov</span>
</a>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<section class="ma__general-teaser {{ imageClass }} {{ layout }}">
{% block teaserImage %}
{% if generalTeaser.image %}
{% if generalTeaser.image.src %}

{% if generalTeaser.title.href %}
<a
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
___DESCRIPTION___
Added
Minor
- DP-9017: Image placement on Guide pages using focal point
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
### Description
This variation displays a centered image with a custom focalpoint in an illustrated header

### Status
* Stable as of 5.0.0

### Pattern Contains
* Page Header

### Variant options
* The image-centered variant is used for images with a [custom focal point](./?p=organisms-illustrated-header-image-centered)

### Variables
~~~
illustratedHeader: {
bgTitle:
type: string / optional (required with image)
bgImage:
type: string (image path) / optional
retinaBgImage:
type: string (image path) / optional
bgCentered:
type: bollean / optional
category:
type: string / required,
pageHeader: {
type: pageHeader / required
}
}
~~~
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This is displays a Page Header pattern with an optional image off to the right
### Variant options
* If the image isn't used a [green](./?p=organisms-illustrated-header-colored) background is shown in it's place.
* There is an inverted variation which uses a [blue](./?p=organisms-illustrated-header-inverted) background in place of the white in the standard variant.

* The image-centered variant is used for images with a [custom focal point] (./?p=organisms-illustrated-header-image-centered)

### Variables
~~~
Expand All @@ -19,6 +19,8 @@ illustratedHeader: {
type: string / optional (required with image)
bgImage:
type: string (image path) / optional
retinaBgImage:
type: string (image path) / optional
category:
type: string / required,
pageHeader: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
{% if illustratedHeader.inverted %}
{% set illustratedHeaderClass = "ma__illustrated-header ma__illustrated-header--inverted" %}
{% endif %}
{% if illustratedHeader.bgCentered %}
{% set illustratedHeaderClass = "ma__illustrated-header ma__illustrated-header--centered" %}
{% endif %}

<section class="{{illustratedHeaderClass}}">
<div class="ma__illustrated-header__container">
Expand All @@ -22,8 +25,20 @@
</div>
</div>
{% if illustratedHeader.bgImage %}
<style>
.ma__illustrated-header__image {
background-image: url('{{ illustratedHeader.bgImage }}');
}

{% if illustratedHeader.retinaBgImage %}
@media (-webkit-min-device-pixel-ratio: 2) {
.ma__illustrated-header__image {
background-image: url('{{ illustratedHeader.retinaBgImage }}');
}
}
{% endif %}
</style>
<div
style="background-image: url('{{ illustratedHeader.bgImage }}')"
class="ma__illustrated-header__image"
role="img"
aria-label="{{ imageAlt }}">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"illustratedHeader": {
"bgInfo": "Forest of the Berkshires",
"bgImage": "../../assets/images/placeholder/800x400.png",
"retinaBgImage": "../../assets/images/placeholder/1600x800.png",
"bgCentered": true,
"category": "Guide",
"pageHeader": {
"title": "Moving to Massachusetts",
"subTitle": "",
"optionalContents": [{
"path": "@organisms/by-author/rich-text.twig",
"data": {
"richText": {
"rteElements": [{
"path": "atoms-paragraph",
"data": {
"paragraph" : {
"text": "This part of the series will cover residency, employment, health care coverage, education, registering to vote, and taxes — important things to help you settle into your life in the Bay State."
}
}
}]
}
}
}],
"headerTags": null
}
}
}
2 changes: 2 additions & 0 deletions styleguide/source/_patterns/05-pages/information-details.twig
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@
{% block sidebar %}
{% set linkList = sidebar.linkList %}
{% include "@organisms/by-author/link-list.twig" %}
{% set contactList = sidebar.contactList %}
{% include "@organisms/by-author/contact-list.twig" %}
{% endblock %}

{% block footer %}
Expand Down
106 changes: 59 additions & 47 deletions styleguide/source/_patterns/05-pages/organization~boards.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@
"titleSubText": "(FLB)"
},
"short_description": {
"richText": {
"rteElements": [{
"path": "@atoms/04-headings/heading-4.twig",
"data": {
"heading4" : {
"text": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. "
"richText": {
"rteElements": [
{
"path": "@atoms/04-headings/heading-4.twig",
"data": {
"heading4": {
"text": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. "
}
}
}
}]
]
}
},
"stackedRows": [
Expand Down Expand Up @@ -111,7 +113,8 @@
}
}
]
},{
},
{
"title": "",
"id": "",
"pageContent": [
Expand Down Expand Up @@ -253,8 +256,10 @@
]
}
}
}]
},{
}
]
},
{
"title": "About Us",
"id": "",
"pageContent": [
Expand Down Expand Up @@ -284,44 +289,51 @@
}
}
],
"sideBar": [{
"path": "@molecules/icon-links.twig",
"data": {
"iconLinks": {
"compHeading": {
"title": "Social",
"sub": true,
"color": "",
"id": "",
"centered": "",
"titleContext": "links for Executive Office of Health and Human Services"
},
"items": [{
"icon": "twitter",
"link": {
"href": "https://twitter.com/MassHHS",
"text": "@MassHHS",
"chevron": ""
}
},{
"icon": "flickr",
"link": {
"href": "https://www.flickr.com/photos/mass_hhs/",
"text": "Mass_HHS",
"chevron": ""
}
},{
"icon": "blog",
"link": {
"href": "https://blog.mass.gov/hhs",
"text": "blog.mass.gov/hhs",
"chevron": ""
}
}]
"sideBar": [
{
"path": "@molecules/icon-links.twig",
"data": {
"iconLinks": {
"compHeading": {
"title": "Social",
"sub": true,
"color": "",
"id": "",
"centered": "",
"titleContext": "links for Executive Office of Health and Human Services"
},
"items": [
{
"icon": "twitter",
"link": {
"href": "https://twitter.com/MassHHS",
"text": "@MassHHS",
"chevron": ""
}
},
{
"icon": "flickr",
"link": {
"href": "https://www.flickr.com/photos/mass_hhs/",
"text": "Mass_HHS",
"chevron": ""
}
},
{
"icon": "blog",
"link": {
"href": "https://blog.mass.gov/hhs",
"text": "blog.mass.gov/hhs",
"chevron": ""
}
}
]
}
}
}
}]
},{
]
},
{
"title": "Board Members",
"id": "",
"pageContent": [
Expand Down Expand Up @@ -1292,7 +1304,7 @@
}
}
},
{
{
"path": "@organisms/by-author/mapped-locations.twig",
"data": {
"mappedLocations": {
Expand Down
5 changes: 5 additions & 0 deletions styleguide/source/assets/js/modules/teaserListingGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ export default function (window, document, $, undefined) {
let totalShown = $root.data('totalVisible');
let teaserItems = $root.find('.ma__general-teaser');

// Hide the toggle if the number of items is less than or equal to the number shown.
if (teaserItems.length <= totalShown) {
$toggle.hide();
}

// set excess items to be hidden
teaserItems.slice(totalShown, teaserItems.length).each((i, el) => {
// Items can be siblings or within an <li>, add class to the <li> if present
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,13 @@ $bp-illustrated-header-image-width: 360px;
justify-content: center;
}
}

.ma__illustrated-header--centered {

.ma__illustrated-header__image {

@media ($bp-illustrated-header-columns-min) {
background-position: center;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@

.sidebar {

@media ($bp-m) {
@media ($bp-medium-min) {
padding-top: 10px;
}

.ma__link-list {
display: none;

@media ($bp-l) {
@media ($bp-large-min) {
display: block;
}
}
Expand Down