Skip to content

Commit c96743e

Browse files
2 parents 5652796 + 691896d commit c96743e

File tree

4 files changed

+88
-56
lines changed

4 files changed

+88
-56
lines changed

.circleci/config.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
2+
version: 2.1
3+
# Use a package of configuration called an orb.
4+
orbs:
5+
aws-cli: circleci/[email protected]
6+
7+
jobs:
8+
build-deploy:
9+
docker:
10+
- image: cimg/ruby:2.7.2-node
11+
environment:
12+
AWS_DEFAULT_REGION: us-gov-west-1
13+
parameters:
14+
bucket:
15+
type: string
16+
17+
steps:
18+
- checkout
19+
- aws-cli/setup
20+
- run: yarn install
21+
# If this works, think about adding it to the Gemfile
22+
- run: gem install bundler:1.16.6
23+
- run: bundle install
24+
- run: yarn build
25+
- run: bundle exec jekyll build
26+
- run: aws s3 sync _site s3://<< parameters.bucket >> --acl public-read
27+
28+
# Orchestrate or schedule a set of jobs
29+
workflows:
30+
deploy-dev:
31+
jobs:
32+
- build-deploy:
33+
# Set the bucket parameter to be the dev bucket
34+
bucket: "dev-design.va.gov"
35+
filters:
36+
branches:
37+
only: master
38+
context:
39+
# The Platform context has the environment variables for setting up the aws cli
40+
- Platform
41+
deploy-staging:
42+
jobs:
43+
- build-deploy:
44+
# Set the bucket parameter to be the staging bucket
45+
bucket: "staging-design.va.gov"
46+
filters:
47+
branches:
48+
only: master
49+
context:
50+
# The Platform context has the environment variables for setting up the aws cli
51+
- Platform

Jenkinsfile

+1-21
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,5 @@ pipeline {
5050
}
5151
}
5252

53-
stage('Deploy dev & staging') {
54-
when {
55-
expression { env.BRANCH_NAME == 'master' }
56-
}
57-
steps {
58-
script {
59-
commit = sh(returnStdout: true, script: "git rev-parse HEAD").trim()
60-
}
61-
62-
build job: 'deploys/vets-design-system-documentation-vagov-dev', parameters: [
63-
booleanParam(name: 'notify_slack', value: true),
64-
stringParam(name: 'ref', value: commit)
65-
], wait: false
66-
67-
build job: 'deploys/vets-design-system-documentation-vagov-staging', parameters: [
68-
booleanParam(name: 'notify_slack', value: true),
69-
stringParam(name: 'ref', value: commit)
70-
], wait: false
71-
}
72-
}
7353
}
74-
}
54+
}

src/_components/buttons.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,12 @@ Only `<button>` elements can be disabled with a `disabled` attribute. To make a
7070
* Style the button most users should click in a way that distinguishes from other buttons on the page. Try using the “large button” or the most visually distinct fill color.
7171
* Make sure buttons should look clickable—use color variations to distinguish static, hover and active states.
7272
* Avoid using too many buttons on a page.
73+
* Reserve chevrons in buttons for "Back" and "Continue" buttons only
7374
* Use sentence case for button labels.
74-
* Button labels should be as short as possible with “trigger words” that your users will recognize to clearly explain what will happen when the button is clicked (for example, “download,” “view” or “sign up”).
75+
* Keep the character limit for button labels to 35 characters. Button labels should be as short as possible with “trigger words” that your users will recognize to clearly explain what will happen when the button is clicked (for example, “download,” “view” or “sign up”).
7576
* Make the first word of the button’s label a verb. For example, instead of “Complaint Filing” label the button “File a complaint.”
7677
* At times, consider adding an icon to signal specific actions (“download”, “open in a new window”, etc).
77-
* Read more about writing for buttons in the [content style guide](../content-style-guide/buttons.html)
78+
* Read more about writing for buttons in the [content style guide](https://design.va.gov/content-style-guide/button-labels)
7879

7980
### When to use
8081

@@ -92,5 +93,5 @@ Only `<button>` elements can be disabled with a `disabled` attribute. To make a
9293
* Buttons should display a visible focus state when users tab to them.
9394
* Avoid using `<div>` or `<img>` tags to create buttons. Screen readers don't automatically know either is a usable button.
9495
* When styling links to look like buttons, remember that screen readers handle links slightly differently than they do buttons. Pressing the Space key triggers a button, but pressing the Enter key triggers a link.
95-
96+
* Include more contextual information in the button label for screen readers. You can use an aria label to specify form numbers or program names in the buttons for greater context. Example: A button label could say "Apply for caregiver assistance" and the button label for screen readers can say, `<button>Apply for <span class="sr only"the program of comprehensive</span> caregiver assistance</button>`
9697

0 commit comments

Comments
 (0)