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

DP-4176 Service page documentation #521

Merged
merged 191 commits into from
Aug 10, 2017
Merged
Show file tree
Hide file tree
Changes from 188 commits
Commits
Show all changes
191 commits
Select commit Hold shift + click to select a range
019005e
Add shell script to deploy PL build to gh-pages branch of given repo
jesconstantine Jun 29, 2017
7e08d04
Make deploy script executable
jesconstantine Jun 29, 2017
fb62369
Use bash shebang in deploy script
jesconstantine Jun 29, 2017
ffc83a1
Fix conditional logic
jesconstantine Jun 29, 2017
41cbd1c
Write git output to screen
jesconstantine Jun 29, 2017
5576165
Fix conditional logic check for false
jesconstantine Jun 29, 2017
5252623
print variable name in log
jesconstantine Jun 29, 2017
2199e94
update order of args
jesconstantine Jun 29, 2017
5155a97
Fix conditional logic boolean false
jesconstantine Jun 29, 2017
ffbf270
fix variable assignment, remove spaces
jesconstantine Jun 29, 2017
a332c9e
echo errors in red, success in green
jesconstantine Jun 29, 2017
aa388a8
fix validation of target environment
jesconstantine Jun 29, 2017
aacc49d
Update deploy script argument validation
jesconstantine Jul 1, 2017
bc04ffa
Validate git push during deploy
jesconstantine Jul 1, 2017
010273a
Exit deploy script on failed build
jesconstantine Jul 1, 2017
e27dd2d
Update docs
jesconstantine Jul 1, 2017
1812d9d
Fix syntax error.
jesconstantine Jul 1, 2017
5321706
Create a function for cleanup
jesconstantine Jul 1, 2017
22578ed
Fix target URL
jesconstantine Jul 1, 2017
7c8c04e
Create function for success / error logging
jesconstantine Jul 1, 2017
89a2ef7
Update docs
jesconstantine Jul 1, 2017
ad648ef
Ensure that patterns are blown away before built
jesconstantine Jul 1, 2017
330c301
Remove exit on error log
jesconstantine Jul 1, 2017
a6b8eea
Fix string comparison in log function
jesconstantine Jul 1, 2017
2757e2c
Add final error message to deploy script
jesconstantine Jul 1, 2017
c31de50
Make wrong target remote repo message more helpful
jesconstantine Jul 1, 2017
4934d9a
Create CNAME for staging (test)
jesconstantine Jul 1, 2017
2db7592
Test confirm functionality
jesconstantine Jul 1, 2017
d2d1f39
Create CNAME for stage / prod
jesconstantine Jul 1, 2017
4dcb5bb
Add logic for final success message non/prod
jesconstantine Jul 1, 2017
31b4872
Update readme with deploy, contrib, versions, license info
jesconstantine Jul 2, 2017
e29f591
Create contributing documentation
jesconstantine Jul 2, 2017
bc8beca
Create deploy documentation
jesconstantine Jul 2, 2017
9287cb4
Fix readme link typo
jesconstantine Jul 2, 2017
68f1f44
Fix link to contributing.md
jesconstantine Jul 2, 2017
f1c9aa9
Update github pages settings docs
jesconstantine Jul 2, 2017
f3e8818
Update Contributing md with Mayflower, PR tips.
jesconstantine Jul 3, 2017
c1b2864
Create PR template
jesconstantine Jul 3, 2017
ccf17c0
Create issue template
jesconstantine Jul 3, 2017
d6323d5
Fix typo and make contributing language more friendly
jesconstantine Jul 3, 2017
d6d9ff5
Update steps to browse in readme.
jesconstantine Jul 3, 2017
6b9c7fd
Update readme browse Mayflower steps
jesconstantine Jul 3, 2017
830aab5
Fix readme typo.
jesconstantine Jul 3, 2017
d0afcfa
Add deployment steps to contributing.md
jesconstantine Jul 3, 2017
c0f8dc6
Fix typo, styling of deploy docs.
jesconstantine Jul 3, 2017
355ee8f
Add PHP version to readme.
jesconstantine Jul 3, 2017
63d4393
Update built with pattern lab language in readme
jesconstantine Jul 3, 2017
e480243
Update mayflower artifacts text in readme.
jesconstantine Jul 3, 2017
697a8ae
Add git commit context to contributing docs
jesconstantine Jul 4, 2017
51335a1
Format readme
jesconstantine Jul 4, 2017
47df5cb
Describe project file structure in contributing.md
jesconstantine Jul 4, 2017
715bb99
Format contributing.md
jesconstantine Jul 4, 2017
90c1124
Clarify github pull request buttons in contributing md
jesconstantine Jul 4, 2017
dd9038a
Remove acknowledgements from contributing TOC
jesconstantine Jul 4, 2017
eedad80
Format prerequisite in deploy docs
jesconstantine Jul 4, 2017
4066e7e
Link to gulp readme from deploy docs
jesconstantine Jul 4, 2017
98718d7
Log output when production deploy aborted
jesconstantine Jul 4, 2017
8e3b38a
Merge branch 'manual-deploy' into DP-4053-document-manual-deploy-process
jesconstantine Jul 4, 2017
e3192f3
Use main repo as example in deploy script comments
jesconstantine Jul 6, 2017
5ad608e
Make cname a parameter for deploy script, required for prod only
jesconstantine Jul 6, 2017
204b093
Move CONTRIBUTING.md into .github directory
jesconstantine Jul 6, 2017
6a6263b
Remove written descriptions of Github's UI, replace with link to docs
jesconstantine Jul 6, 2017
8662b1f
Make CONTRIBUTING.md branching language more consistent with git
jesconstantine Jul 6, 2017
c667e7f
Move pattern lab docs to first step in CONTRIBUTING > working with PL
jesconstantine Jul 6, 2017
56f7c30
Remove vague language in CONTRIBUTING.md
jesconstantine Jul 6, 2017
5fa898a
Clarify Mayflower Artifacts in readme
jesconstantine Jul 6, 2017
232296f
Make CONTRIBUTING.md > keeping your fork in sync explanation more clear.
jesconstantine Jul 6, 2017
700b3b7
Move environment setup and demo install instructions to own docs
jesconstantine Jul 6, 2017
c77e3cc
Group steps in CONTRIBUTING.md
jesconstantine Jul 6, 2017
0a1664a
Fix link to CONTRIBUTING.md after move to /.github
jesconstantine Jul 6, 2017
ad16e9c
Simplify readme install / contribute / deploy sections
jesconstantine Jul 6, 2017
17c18f3
Remove link to personal fork, but keep repo name, in deploy docs
jesconstantine Jul 6, 2017
8015c8e
Fix mayflower-artifacts url in readme
jesconstantine Jul 6, 2017
8edde43
Update the deploy success message to use cname if present
jesconstantine Jul 6, 2017
e0f7206
Fix cname conditional logic in deploy script.
jesconstantine Jul 6, 2017
31957c7
Use [-c] rather tha [-cname] as parameter for gh pages deploy script
jesconstantine Jul 6, 2017
5c713e5
Fix typo in success message for cname
jesconstantine Jul 6, 2017
06aeea9
Fix deploy script config for url.domain/assetsPath when cname passed
jesconstantine Jul 8, 2017
b06e445
Improve script logging: hide lengthy status/success, color + tag logs.
jesconstantine Jul 8, 2017
6f5ab99
Fix typos.
jesconstantine Jul 8, 2017
e6c68ed
Fix typo in docs for [-t] argument.
jesconstantine Jul 8, 2017
031b2bc
Move log prior to command for creating cname in deploy script.
jesconstantine Jul 8, 2017
cfd5087
Avoid having to escape / in deploy script > assetsPath var
jesconstantine Jul 11, 2017
f0db750
Allow assetsPath to be passed with cname flag
jesconstantine Jul 11, 2017
f3e6dd7
Accept [-a] argument in deploy script
jesconstantine Jul 11, 2017
1011eb3
Fix deploy script [-t] flag to be target remote repo *owner*
jesconstantine Jul 11, 2017
34e5e46
Remove extra " from assetsPath in url.json
jesconstantine Jul 11, 2017
58beead
Update [-c] validation log to reflect [-c] vs [-cname]
jesconstantine Jul 11, 2017
72ade22
Add developer deploy docs note about cname and assetPaths flags.
jesconstantine Jul 11, 2017
355c572
Uncomment script. So. It. Does. Things. (silly)
jesconstantine Jul 12, 2017
cef2d8b
Link to mayflower artifacts docs from readme (vs duplicating content)
jesconstantine Jul 18, 2017
348c13a
DP-4048 - Annotations - updating to look for JS classes used.
Jul 19, 2017
4c7c21b
DP-4048 - Annotations - The extra html added breaks the styles
Jul 19, 2017
593d82b
Dp-4048 - Extra Js - removing unused JS files
Jul 19, 2017
842c6b8
DP-4048 - updating Styling of Pattern Info panel
Jul 19, 2017
b29c177
DP-4048 - Contact List - Documentation
Jul 19, 2017
51903e8
DP-4048 - Image
Jul 19, 2017
f508b57
DP-4048 - Pattern Documentation - Remving Usage Guidelines.
Jul 20, 2017
d9b7300
DP-4048 - additional tweaks to md files
Jul 20, 2017
3f539d5
DP-4048 - Lineage styling
Jul 20, 2017
fb8b7a8
DP-4048 - Removing title yaml.
Jul 20, 2017
96f34ba
Make all intra-docs links relative
jesconstantine Jul 21, 2017
c042dd5
Fix deploy docs links
jesconstantine Jul 21, 2017
4d7c86d
Update clone steps to be more clear
jesconstantine Jul 21, 2017
29c26e7
Ensure branch is clean after deploy, fix typos
jesconstantine Jul 21, 2017
abda85f
Add patternlab task to deafult gulp ( = always generate patterns)
jesconstantine Jul 21, 2017
ca4388e
Try gulp prod in deploy script
jesconstantine Jul 21, 2017
243f6d6
Ensure public directory gets cleaned out prior to generation
jesconstantine Jul 21, 2017
a32f1fa
DP-4048 - Contact List - removed 'title' field from docs
Jul 21, 2017
7fd162e
DP-4176 - Service Page and Template - documentation
Jul 21, 2017
95c4718
DP-4053 - Introduce & document a manual deployment process
Jul 21, 2017
bc00f70
DP-4176 - Page Banner - Documentation
Jul 21, 2017
c16a4f8
Merge branch 'DP-4048-PatternDocs' into DP-4176-ServicePageDocs
Jul 21, 2017
0b14948
DP-4048 Establish format for pattern docs (#515)
Jul 21, 2017
8e00148
DP-4176 - Image - documentation
Jul 21, 2017
dc368dc
DP-4176 - Video - documentation
Jul 21, 2017
d4fdd8c
DP-4176 - Documentation template
Jul 21, 2017
aacbec8
DP-4176 - Key Actions - Documentation
Jul 21, 2017
d502a2a
DP-4176 - Decorative Link - documentation
Jul 21, 2017
b14b397
DP-4176 - Key Actions - adding contained type
Jul 21, 2017
7188b15
DP-4167 - Callout Link - documentation
Jul 21, 2017
fc1ef06
DP-4176 - Illustrated link - documentation
Jul 24, 2017
88c9f3a
DP-4176 - Variant Documentation template
Jul 24, 2017
c4153c0
DP-4176 - Contact List - Updated variant documentation
Jul 24, 2017
62df2ad
DP-4176 - Sidebar Heading - documentation
Jul 24, 2017
777bdc8
DP-4176 - Comp Heading - documentation
Jul 24, 2017
11a653f
DP-4176 - Variants - making link relative './'
Jul 24, 2017
9c9fcc9
DP-4176 - Icon Links - documentation
Jul 24, 2017
6232107
DP-4176 - Link List - documentation
Jul 24, 2017
0491c0d
DP-4176 - Link List - documention of Right Rail usage
Jul 24, 2017
b5f0c0c
DP-4176 - Action Finder - documentation
Jul 24, 2017
605e552
DP-4176 - Mapped Locations - documentation
Jul 24, 2017
52a2333
DP-4176 - Variant template updated
Jul 24, 2017
93a7197
DP-4176 - Mapped Locations - Removed title from contained version
Jul 24, 2017
4014afd
DP-4176 - Callout Link External - removed variant
Jul 24, 2017
2eaedcc
Mapped Locations - Fixing bug with assigning the colored background
Jul 24, 2017
0f9eb44
DP-4176 - Split Columns - documentation
Jul 24, 2017
7c32634
DP-4176 - Rich Text - documentation
Jul 24, 2017
eca96ed
DP-4176 - Download Link - documentation
Jul 25, 2017
830110c
DP-4176 - Forms Downloads - documentation
Jul 25, 2017
d0b777f
DP-4176 - Utility Panel - documentation
Jul 25, 2017
d764475
DP-4176 - Utility Nav - documentation
Jul 25, 2017
5b11ef6
DP-4176 - Header - documentation
Jul 25, 2017
9530661
DP-4176 - Button Search - documentation
Jul 25, 2017
f125c5b
DP-4176 - Site Logo - documentation
Jul 25, 2017
d89380a
DP-4176 - Header Search - documentation
Jul 25, 2017
65d480d
DP-4176 - Main Nav - documentation
Jul 25, 2017
42b931a
DP-4176 - Button - documentation
Jul 25, 2017
c9a805f
DP-4176 - Button - adding link option and correcting styling classes
Jul 25, 2017
7d7d621
DP-4176 - Button Link - marking it as depreciated
Jul 25, 2017
04492cc
DP-4176 - Floating Action - updated to use just the button atom
Jul 25, 2017
b5e1b33
DP-4176 - Floating Action - documentation
Jul 25, 2017
1b8b99d
DP-4176 - Buttons - Updates to SCSS selectors
Jul 25, 2017
1cc4d8b
DP-4176 - Floating Action - correcting styling classes
Jul 25, 2017
58eed5c
DP-4176 - Footer - documentation
Jul 25, 2017
6aff0fb
DP-4176 - Heading / Util Panel - marking as in Progress so we can update
Jul 25, 2017
5a46115
DP-4176 - Button - re-adding support for the 'theme' variable
Jul 26, 2017
e0cb1e5
DP-4176 - Social Links - documentation
Jul 26, 2017
f508347
DP-4176 - Footer Links - documentation
Jul 26, 2017
cf3741b
Merge branch 'C4-Documentation' into DP-4176-ServicePageDocs
Jul 26, 2017
df0a2d0
DP-4176 - Buttons - leaving old styles for backward compatibilty
Jul 26, 2017
ce4c461
DP-4167 - Callout Link - moving the info variable to a title attribute
Jul 26, 2017
5403625
DP-4176 - Buttons - incorrect indentation
Jul 26, 2017
3639b3c
DP-4167 - Rich Text - updating to include all accepted patterns
Jul 26, 2017
106f2b6
DP-4176 - Rich text sub patterns - documentation
Jul 26, 2017
71f7096
DP-4167 - figure - documentation and modified to use --left/--right c…
Jul 26, 2017
e4742b1
DP-4167 - Table - documentation
Jul 26, 2017
4ebb61f
DP-4080 - Versioning Documentation (#504)
Jul 26, 2017
b3eab14
Merge branch 'C4-Documentation' into DP-4176-ServicePageDocs
Jul 28, 2017
49df990
Merge remote-tracking branch 'origin/C4-Docs' into DP-4176-ServicePag…
Aug 2, 2017
39c93d3
DP-4176 - Callout Link - making CSS backward compatible
Aug 2, 2017
c730918
DP-4176 - Floating Action - making code backward compatible
Aug 2, 2017
c38094f
DP-4177 - Button - fixed logic to use old "theme" variable for color.
Jul 31, 2017
c385a23
DP-4178 - Button - fixing broken links
Jul 31, 2017
1fe9c27
DP-4176 - Button - switching color back to theme include values
Aug 3, 2017
3ee70c6
DP-4176 - Comp Heading - correcting id value
Aug 3, 2017
cf02035
DP-4176 - Decorative Link - removing schema.org and using title
Aug 3, 2017
b532c65
DP-4176 - Linked List - Update docs
Aug 4, 2017
baac8de
DP-4176 - Mapped Locations - updated docs
Aug 4, 2017
ef3a1a0
DP-4176 - Page Banner - Updated Docs
Aug 4, 2017
5ea0b24
DP-4176 - Services Template - updated docs
Aug 4, 2017
bb73be8
DP-4176 - Action Finder - updated docs
Aug 4, 2017
e485671
DP-4176 - Download Link - removing property
Aug 4, 2017
1117e5e
DP-4176 - Callout Link - Better descriptive text
Aug 4, 2017
05bcc1d
DP-4176 - Video - updated documentation
Aug 4, 2017
2b055fb
DP-4176 - Decorative Link - updated docs
Aug 4, 2017
1cefde3
DP-4176 - Mapped Locations - adding more useage guidelines
Aug 4, 2017
9e7ac8d
Merge branch 'C4-Docs' into DP-4176-ServicePageDocs
Aug 7, 2017
1927def
DP-4176 - Button - updated docs
Aug 7, 2017
6040180
DP-4176 - Table - updated docs
Aug 7, 2017
30362b4
DP-4176 - Comp Heading - changing id value
Aug 9, 2017
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
3 changes: 2 additions & 1 deletion styleguide/source/_data/floating-action.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"floatingAction": {
"type":"buttonLink",
"alignment": "right",
"button": {
"href": "#",
"text": "Tell us what you think",
"info": "",
"type": "",
"theme": "green",
"outline": true,
"size": "small"
Expand Down
3 changes: 3 additions & 0 deletions styleguide/source/_data/footerLinks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"footerLinks": {
"items": [{
"heading": "FooterLinks1",
"id": "FooterLinks1",
"links": [{
"href": "#",
"text": "Living"
Expand All @@ -20,6 +21,7 @@
}]
},{
"heading": "FooterLinks2",
"id": "FooterLinks2",
"links": [{
"href": "#",
"text": "Contact Us"
Expand All @@ -32,6 +34,7 @@
}]
},{
"heading": "FooterLinks3",
"id": "FooterLinks3",
"links": [{
"href": "#",
"text": "Sitemap"
Expand Down
19 changes: 0 additions & 19 deletions styleguide/source/_data/utilityNav.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
{
"utilityNav": {
"dropdown": {
"labelText": "Language:",
"id": "lang-select",
"name": "lang-select",
"options": [{
"text": "Default language: English",
"value": "en"
},{
"text": "Français",
"value": "fr"
},{
"text": "Deutsch",
"value": "de"
},{
"text": "Español",
"value": "es"
}]
},

"items": [{
"text": "State Organizations",
"ariaLabelText": "",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Description
This is a variant of the [Button](./?p=atoms-button) pattern showing an example using a link instead of a button.

### How to generate
* Populate the 'href' variable
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Description
This is a variant of the [Button](./?p=atoms-button) pattern showing an example styled as an outline.

### How to generate
* set the 'outline' variable to true
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Description
This is a variant of the [Button](./?p=atoms-button) pattern showing an example in gray.

### How to generate
* set the 'theme' variable to 'quaternary'
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Description
This is a variant of the [Button](./?p=atoms-button) pattern showing a small button example in green with an outline.

### How to generate
* set the 'theme' variable to 'secondary'
* set the 'outline' variable to true
* set the 'size' variable to 'small'
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Description
This is a variant of the [Button](./?p=atoms-button) pattern showing an example of a small button.

### How to generate
* set the 'size' variable to 'small'
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Button Link
---
Description: A link `<a>` element which is styled to look like a button.

## State: ALPHA
## State: depreciated

### Notes:
- 'theme' eventually needs to be changed to 'color' and used as a modifier class (--color)
Expand Down
25 changes: 8 additions & 17 deletions styleguide/source/_patterns/01-atoms/01-buttons/button-search.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
---
title: Button Search
---
Description: A `<button> [type='submit']` element which contains a visually hidden `<span>` element and an `<svg>` icon element.
### Description
A Button used for keyword search.

## State: ALPHA
### Used In:
- [@molecules/header-search](/?p=molecules-header-search)
- [@molecules/keyword-search](/?p=molecules-keyword-search)
### Status
* Stable as of 5.0.0

### Contains:
- [@atoms/05-icons/svg-search.twig](/?p=atoms-svg-search)

### Required Variables:
### Variables
~~~
buttonSearch {
text:
type: string/required
buttonSearch: {
text:
type: string / required
}
~~~

~~~
2 changes: 2 additions & 0 deletions styleguide/source/_patterns/01-atoms/01-buttons/button.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"button": {
"href": "",
"info": "",
"text": "Button",
"type": "button",
"size": "",
Expand Down
28 changes: 17 additions & 11 deletions styleguide/source/_patterns/01-atoms/01-buttons/button.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
---
title: Button
---
Description: A `<button>` element styled solid or outline and regular or small size
### Description
This is the standard button pattern

## State: ALPHA
### Status
* Stable as of 6.0.0

### Notes:
- 'theme' eventually needs to be changed to 'color' and used as a modifier class (--color)
### Variant options
* Using a [link](./?p=atoms-button-as-link) instead of a button
* [small](./?p=atoms-button-as-small)
* [outline](./?p=atoms-button-as-outline)
* [gray](./?p=atoms-button-as-quaternary-color) color
* [green with an outline](./?p=atoms-button-as-secondary-color)

### Used In:

### Variables:
### Variables
~~~
buttonMain {
button: {
href:
type: string (url) / optional
info:
type: string / optional
text:
type: string / required
type:
type: string / optional (ex: "button", "submit")
size:
type: string / optional ("" or "small")
theme:
type: string / optional ("" or "alt")
type: string / optional ("", "secondary", or "secondary")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing one of these "secondary"s should be "quaternary", right?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, good catch

outline:
type: boolean
}
Expand Down
22 changes: 13 additions & 9 deletions styleguide/source/_patterns/01-atoms/01-buttons/button.twig
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{% set buttonClassSize = button.size ? "ma__button--" ~ button.size : "" %}
{% set buttonClass = "ma__button" %}
{% set buttonSize = button.size ? "ma__button--" ~ button.size : "" %}

{% if button.outline %}
{% set buttonClass = buttonClass ~ "-minor" %}
{% endif %}
{% set buttonStyle = button.outline ? "ma__button--minor" : "" %}

{% if button.theme %}
{% set buttonClass = buttonClass ~ "-" ~ button.theme %}
{% endif %}
{% set buttonTheme = button.theme ? "ma__button--" ~ button.theme : "" %}

<button type="{{ button.type }}" class="{{ buttonClass }} {{ buttonClassSize }}">{{ button.text }}</button>
{% if button.href %}
<a
href="{{ button.href }}"
class="ma__button {{ buttonSize }} {{buttonTheme}} {{buttonStyle}}"
title="{{ button.info }}">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious as to the motivation behind using the title attribute here vs a visually hidden span?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Title is designed for this purpose so why not use it over doing a hack with a hidden span tag. Also using the attribute allows you to pass a string that doesn't have to be an extension of the button's text.

"view more" + "about this thing" can instead be "click here to read more about this thing"

{{ button.text }}
</a>
{% else %}
<button type="{{ button.type }}" class="ma__button {{ buttonSize }} {{buttonTheme}} {{buttonStyle}}" aria-label="{{ button.info }}">{{ button.text }}</button>
{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"button": {
"href": "#",
"info": "",
"text": "Button",
"type": "",
"size": "",
"theme": "",
"outline": false
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"button": {
"href": "",
"info": "",
"text": "Button",
"type": "button",
"size": "",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"button": {
"href": "",
"info": "",
"text": "Button",
"type": "button",
"size": "",
"theme": "alt",
"theme": "quaternary",
"outline": false
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"button": {
"href": "",
"info": "",
"text": "Button",
"type": "button",
"size": "small",
"theme": "secondary",
"outline": true
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"button": {
"href": "",
"info": "",
"text": "Button",
"type": "button",
"size": "small",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
---
title: Comp Heading Centered
---
Description: Centered Variant of Comp Heading.
### Description
This is a variant of the [Comp Heading](./?p=atoms-comp-heading) showing an example with a centered underline.

### Notes
- _centered variable is set to 'true'_

### Base
- [@atoms/04-headings/comp-heading](/?p=atoms-comp-heading)
### How to generate
* Set the 'centered' variable equal to boolean value true
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
---
title: Comp Subheading
---
Description: Subheading Variant of Comp Heading.
### Description
This is a variant of the [Comp Heading](./?p=atoms-comp-heading) showing an example as a sub heading (H3).

### Notes
- _sub variable is set to 'true'_

### Base
- [@atoms/04-headings/comp-heading](/?p=atoms-comp-heading)
### How to generate
* Set the 'sub' variable equal to the boolean value true
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
---
title: Comp Heading Yellow
---
Description: Yellow Variant of Comp Heading.
### Description
This is a variant of the [Comp Heading](./?p=atoms-comp-heading) showing an example with a yellow underline.

### Notes:
- _color variable is set to 'yellow'_

### Base
- [@atoms/04-headings/comp-heading](/?p=atoms-comp-heading)
### How to generate
* Set the 'color' variable equal to "yellow"
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compHeading": {
"title": "Employment",
"title": "Title text",
"sub": "",
"color": "",
"id": "employment",
"id": "title-text",
"centered": ""
}
}
36 changes: 12 additions & 24 deletions styleguide/source/_patterns/01-atoms/04-headings/comp-heading.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,26 @@
---
title: Comp Heading
---
Description: An `<h2>` or `<h3>` element with a styled underline color designated by its CSS class.
### Description
An `<h2>` element with a styled underline color

## State: ALPHA
### Status
* Stable as of 5.0.0

### Notes:
### Variant options
* [Sub Heading](./?p=atoms-comp-heading-subheading) by setting 'sub' to true.
* [Centered](./?p=atoms-comp-heading-centered) by setting 'centered' to true
* [Yelllow Underline](./?p=atoms-comp-heading-yellow) by setting 'color' to "yellow"


### Used In:
- [@molecules/action-section](/?p=molecules-action-section)
- [@organisms/by-author/key-actions](/?p=organisms-key-actions)
- [@organisms/by-author/helpful-links](/?p=organisms-helpful-links)
- [@organisms/by-author/form-download](/?p=organisms-form-download)
- [@organisms/by-author/multi-row-section](/?p=organisms-multi-row-section)

### Variables:
### Variables
~~~
compHeading: {
title:
type: string / required
sub:
type: string ("true" || "" )
type: string ("true" || "" ) / optional
color:
type: string ("yellow")
type: string ("yellow") / optional
id:
type: string
type: string (unique per page) / optional
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unique per page - 👍

centered:
type: boolean
}
~~~

### Variations
- [@atoms/04-headings/comp-heading](/?p=atoms-comp-heading)
- [@atoms/04-headings/comp-heading-subheading](/?p=atoms-comp-heading-subheading)
- [@atoms/04-headings/comp-heading-yellow](/?p=atoms-comp-heading-yellow)
- [@atoms/04-headings/comp-heading-centered](/?p=atoms-comp-heading-centered)
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compHeading": {
"title": "Employment",
"title": "Title text",
"sub": "",
"color": "",
"id": "employment",
"id": "",
"centered": "true"
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compHeading": {
"title": "Key Actions",
"title": "Title text",
"sub": true,
"color": "",
"id": "key-actions",
"id": "",
"centered": ""
}
}
Loading