-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patternlab/dp 14006 update manage your account (#561)
* DP-14006: update h3 # * DP-14006: add changelog * DP-14006: re-running circleCI test * DP-14006: switch link templates * DP-14006: switch wrapper templates * DP-14006: update readme * DP-14006: add .md file for links * DP-14006: Update descriptive-link-wrapper Updated new descriptive-links-wrapper to ensure link data is passed on to new descriptive-link molecule. * DP-14006: Update changelog to reflect newly generated patterns * DP-14006: update css for descriptive links * DP-14006: update howto page template * DP14006: backstop file udpates
- Loading branch information
Showing
16 changed files
with
203 additions
and
145 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...s/scss/03-organisms/_account-manager.scss → ...scss/03-organisms/_descriptive-links.scss
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,10 +1,10 @@ | ||
.ma__account-manager { | ||
.ma__descriptive-links { | ||
|
||
&--section { | ||
.ma__descriptive-link { | ||
padding-bottom: 2rem; | ||
|
||
.ma__decorative-link { | ||
padding-top: 1rem; | ||
} | ||
} | ||
} | ||
} |
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,4 @@ | ||
___DESCRIPTION___ | ||
minor | ||
changed | ||
- patternlab [Descriptive link wrapper] DP-14006: Add new "Descriptive links wrapper" organism and associated "Descriptive link" molecule to handle when a brief description and an associated link are needed. |
Binary file modified
BIN
+47 KB
(110%)
patternlab/backstopjs/reference/regression_page_howto_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
+47.3 KB
(110%)
patternlab/backstopjs/reference/regression_page_howto_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.
7 changes: 0 additions & 7 deletions
7
patternlab/styleguide/source/_patterns/02-molecules/account-manager-section.twig
This file was deleted.
Oops, something went wrong.
File renamed without changes.
20 changes: 20 additions & 0 deletions
20
patternlab/styleguide/source/_patterns/02-molecules/descriptive-link.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 | ||
A block of text and decorative link | ||
|
||
### Status | ||
* Stable as of 5.0.0 | ||
|
||
### Pattern Contains | ||
wysiwyg block | ||
decorative link | ||
|
||
### Variables | ||
~~~ | ||
links: { | ||
content: | ||
type: richtext /required | ||
link: | ||
type: link / required | ||
} | ||
~~~ |
7 changes: 7 additions & 0 deletions
7
patternlab/styleguide/source/_patterns/02-molecules/descriptive-link.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<div class="ma__descriptive-link"> | ||
{% set richText = richText %} | ||
{% include "@organisms/by-author/rich-text.twig" %} | ||
|
||
{% set decorativeLink = link %} | ||
{% include "@atoms/decorative-link.twig" %} | ||
</div> |
67 changes: 0 additions & 67 deletions
67
patternlab/styleguide/source/_patterns/03-organisms/by-author/account-manager.json
This file was deleted.
Oops, something went wrong.
11 changes: 8 additions & 3 deletions
11
patternlab/styleguide/source/_patterns/03-organisms/by-author/account-manager.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
12 changes: 0 additions & 12 deletions
12
patternlab/styleguide/source/_patterns/03-organisms/by-author/account-manager.twig
This file was deleted.
Oops, something went wrong.
76 changes: 76 additions & 0 deletions
76
patternlab/styleguide/source/_patterns/03-organisms/by-author/descriptive-links-wrapper.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,76 @@ | ||
{ | ||
"descriptiveLinks": { | ||
"compHeading": { | ||
"title": "Manage Your Account", | ||
"sub": "true", | ||
"color": "", | ||
"id": "manage-your-account", | ||
"centered": "" | ||
}, | ||
"links": [ | ||
{ | ||
"richText": { | ||
"rteElements": [ | ||
{ | ||
"path": "@atoms/11-text/paragraph.twig", | ||
"data": { | ||
"paragraph": { | ||
"text": "Explicabo itaque possimus dignissimos? Repudiandae tempore, fugit illum? Iure error omnis eveniet eius iste molestias. Veritatis provident hic voluptate voluptatibus ullam accusantium, obcaecati tempora soluta praesentium accusamus sed dicta sapiente." | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"link": { | ||
"href": "#", | ||
"text": "Check your status", | ||
"context": "", | ||
"button": false, | ||
"info": "" | ||
} | ||
}, | ||
{ | ||
"richText": { | ||
"rteElements": [ | ||
{ | ||
"path": "@atoms/11-text/paragraph.twig", | ||
"data": { | ||
"paragraph": { | ||
"text": "Explicabo itaque possimus dignissimos? Repudiandae tempore, fugit illum? Iure error omnis eveniet eius iste molestias. Veritatis provident hic voluptate voluptatibus ullam accusantium, obcaecati tempora soluta praesentium accusamus sed dicta sapiente." | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"link": { | ||
"href": "#", | ||
"text": "Log in to your account", | ||
"context": "", | ||
"button": false, | ||
"info": "" | ||
} | ||
}, | ||
{ | ||
"richText": { | ||
"rteElements": [ | ||
{ | ||
"path": "@atoms/11-text/paragraph.twig", | ||
"data": { | ||
"paragraph": { | ||
"text": "Explicabo itaque possimus dignissimos? Repudiandae tempore, fugit illum? Iure error omnis eveniet eius iste molestias. Veritatis provident hic voluptate voluptatibus ullam accusantium, obcaecati tempora soluta praesentium accusamus sed dicta sapiente." | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"link": { | ||
"href": "#", | ||
"text": "Lorem ipsum dolor sit amet.", | ||
"context": "", | ||
"button": false, | ||
"info": "" | ||
} | ||
} | ||
] | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
patternlab/styleguide/source/_patterns/03-organisms/by-author/descriptive-links-wrapper.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<section class="ma__descriptive-links"> | ||
{% set compHeading = descriptiveLinks.compHeading %} | ||
{% include "@atoms/04-headings/comp-heading.twig" %} | ||
|
||
{% block descriptiveLinks %} | ||
{% for link in descriptiveLinks.links %} | ||
{% include "@molecules/descriptive-link.twig" with { | ||
richText: link.richText, | ||
link: link.link | ||
} %} | ||
{% endfor %} | ||
{% endblock %} | ||
</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
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.