@ons/design-system 70.0.10 → 70.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -0
- package/components/address-output/example-address-output.njk +11 -0
- package/components/card/_macro.njk +1 -1
- package/components/document-list/{document-list.scss → _document-list.scss} +4 -4
- package/components/header/_macro.spec.js +513 -721
- package/components/header/_test_examples.js +157 -0
- package/components/hero/_macro.njk +1 -1
- package/components/input/_macro.njk +1 -1
- package/components/label/_label.scss +1 -1
- package/components/list/_list.scss +20 -11
- package/components/list/_macro.njk +11 -6
- package/components/list/_macro.spec.js +29 -6
- package/components/list/example-bare-list.njk +21 -0
- package/components/list/example-bulleted-list.njk +17 -0
- package/components/list/example-dashed-list.njk +20 -0
- package/components/list/example-inline-list-with-social-icon-prefix.njk +42 -0
- package/components/list/example-inline-list.njk +20 -0
- package/components/list/example-list-with-icon-prefix.njk +18 -0
- package/components/list/example-list-with-icon-suffix.njk +18 -0
- package/components/list/example-nested-list.njk +39 -0
- package/components/list/example-numbered-list.njk +17 -0
- package/components/list/example-prefixed-list.njk +19 -0
- package/components/list/example-suffixed-list.njk +19 -0
- package/components/list/example-summary-list.njk +17 -0
- package/components/navigation/_macro.njk +1 -1
- package/components/navigation/_macro.spec.js +1 -1
- package/components/quote/example-quote.njk +7 -0
- package/components/related-content/example-related-content-social-media.njk +0 -1
- package/components/summary/_macro.njk +1 -1
- package/components/text-indent/example-text-indent.njk +6 -0
- package/css/main.css +1 -1
- package/img/large/placeholder-card.png +0 -0
- package/img/small/placeholder-card.png +0 -0
- package/layout/_dsTemplate.njk +1 -1
- package/package.json +1 -1
- package/scss/main.scss +1 -1
- package/scss/utilities/_index.scss +1 -1
- package/scss/utilities/{_pad.scss → _padding.scss} +6 -6
- package/scss/vars/_colors.scss +1 -2
- package/components/back-link/example-back-link.njk +0 -17
- package/components/helpers/_grid.scss +0 -6
- package/components/helpers/grid.njk +0 -20
package/README.md
CHANGED
|
@@ -144,6 +144,42 @@ Generate a build into `./build`.
|
|
|
144
144
|
yarn build
|
|
145
145
|
```
|
|
146
146
|
|
|
147
|
+
## Manually publish to NPM
|
|
148
|
+
|
|
149
|
+
Make sure you are logged into the CLI with the DS shared npm account
|
|
150
|
+
|
|
151
|
+
Make sure dependencies are installed:
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
yarn install
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Set the version (replacing "<DS release version>" with actual release version e.g. 70.0.0):
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
npm version <DS release version>
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Create an NPM package by running:
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
yarn npm-bundle
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**_Once you have published to npm, the version you have published can never be used again so you want to make sure you have the right files included to do this run:_**
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
npm pack
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Then compare this list with the list of the current version here (https://www.npmjs.com/package/@ons/design-system?activeTab=code)
|
|
176
|
+
|
|
177
|
+
If these match or have some expected changes then run this to publish:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
npm publish --access public
|
|
181
|
+
```
|
|
182
|
+
|
|
147
183
|
## Recommended Visual Studio Code Extensions for this project
|
|
148
184
|
|
|
149
185
|
- [axe Accessibility Linter](https://marketplace.visualstudio.com/items?itemName=deque-systems.vscode-axe-linter)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{% set headingLevel = params.headingLevel | default(2) | string %}
|
|
3
3
|
{% set openingHeadingTag = "<h" + headingLevel %}
|
|
4
4
|
{% set closingHeadingTag = "</h" + headingLevel + ">" %}
|
|
5
|
-
{% set placeholderSrcset = (params.image.placeholderURL if params.image.placeholderURL) + "/img/small/placeholder-card.png 1x, " + (params.image.placeholderURL if params.image.placeholderURL else "") + "/img/large/placeholder-card.png 2x" %}
|
|
5
|
+
{% set placeholderSrcset = (params.image.placeholderURL if params.image.placeholderURL else "") + "/img/small/placeholder-card.png 1x, " + (params.image.placeholderURL if params.image.placeholderURL else "") + "/img/large/placeholder-card.png 2x" %}
|
|
6
6
|
|
|
7
7
|
<div class="ons-card">
|
|
8
8
|
<a href="{{ params.url }}" class="ons-card__link">
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
|
|
114
114
|
&__item-image--file & {
|
|
115
115
|
&__image-link {
|
|
116
|
-
border-color: var(--ons-color-borders
|
|
116
|
+
border-color: var(--ons-color-borders);
|
|
117
117
|
|
|
118
118
|
&--placeholder {
|
|
119
119
|
height: 136px;
|
|
@@ -128,16 +128,16 @@
|
|
|
128
128
|
width: 100%;
|
|
129
129
|
|
|
130
130
|
&:focus {
|
|
131
|
-
background-color: var(--ons-color-
|
|
131
|
+
background-color: var(--ons-color-placeholder) !important;
|
|
132
132
|
border: 2px solid var(--ons-color-borders-document-image-focus);
|
|
133
133
|
box-shadow: none;
|
|
134
134
|
outline: 4px solid var(--ons-color-focus) !important;
|
|
135
|
-
outline-offset: 0;
|
|
135
|
+
outline-offset: 0 !important;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
&--placeholder {
|
|
139
139
|
background-clip: padding-box;
|
|
140
|
-
background-color: var(--ons-color-
|
|
140
|
+
background-color: var(--ons-color-placeholder);
|
|
141
141
|
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='%23fff' d='M0 19.39c.49-1 1-2 1.55-2.93A31.59 31.59 0 0 1 0 11.72v7.67ZM3 0S0 0 0 3.7v2a34.85 34.85 0 0 0 2.17 9.76A31.2 31.2 0 0 1 8.3 8.3c4.84-4.16 11.36-7 20.21-8.29Zm28.84 2c-10.11 1-17 3.86-22 8.1a29.78 29.78 0 0 0-6.49 8C7.26 25.65 14.66 31.19 27 32h1.21A3.71 3.71 0 0 0 32 27.91V2a.41.41 0 0 1-.16 0Zm-26 21.49a25.94 25.94 0 0 1-3-4.4A48 48 0 0 0 0 25.71V32h20.23a26.41 26.41 0 0 1-14.39-8.49Z'/%3e%3c/svg%3e");
|
|
142
142
|
background-position: center;
|
|
143
143
|
background-repeat: no-repeat;
|