@ons/design-system 58.0.2 → 59.1.0
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/components/access-code/uac.scss +1 -1
- package/components/autosuggest/_autosuggest.scss +1 -1
- package/components/button/_button.scss +3 -3
- package/components/download-resources/_download-resources.scss +1 -1
- package/components/fieldset/_fieldset.scss +2 -2
- package/components/hero/_hero.scss +1 -1
- package/components/navigation/_navigation.scss +1 -1
- package/components/panel/_panel.scss +1 -1
- package/components/summary/_summary.scss +2 -2
- package/components/table/_table.scss +3 -3
- package/components/video/_macro.njk +2 -2
- package/components/video/_macro.spec.js +28 -2
- package/css/census.css +3 -3
- package/css/ids.css +3 -3
- package/css/main.css +3 -3
- package/fonts/opensans-bold.woff +0 -0
- package/fonts/opensans-bold.woff2 +0 -0
- package/fonts/opensans-regular.woff +0 -0
- package/fonts/opensans-regular.woff2 +0 -0
- package/layout/_template.njk +4 -2
- package/package.json +1 -1
- package/scss/base/_typography.scss +1 -0
- package/scss/patternlib.scss +2 -1
- package/scss/utilities/_typography.scss +1 -1
- package/scss/vars/_colors.scss +1 -0
- package/scss/vars/_typography.scss +1 -1
package/fonts/opensans-bold.woff
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/layout/_template.njk
CHANGED
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
{% set metaicons = "" %}
|
|
19
19
|
{% endif %}
|
|
20
20
|
|
|
21
|
-
{% if pageConfig.cdn or release_version %}
|
|
21
|
+
{% if pageConfig.cdn or release_version or designSystemVersion %}
|
|
22
22
|
{# Production #}
|
|
23
23
|
{% set cdn_url = (pageConfig.cdn.url if pageConfig.cdn and pageConfig.cdn.url) or "https://cdn.ons.gov.uk/sdc/design-system" %}
|
|
24
24
|
{% set slash = "" if cdn_url | last == "/" else "/" %}
|
|
25
|
-
{% set assetsURL = cdn_url + slash + ((pageConfig.cdn.version if pageConfig.cdn and pageConfig.cdn.version) or release_version) %}
|
|
25
|
+
{% set assetsURL = cdn_url + slash + ((pageConfig.cdn.version if pageConfig.cdn and pageConfig.cdn.version) or release_version or designSystemVersion) %}
|
|
26
26
|
{% elif pageInfo and pageInfo.version %}
|
|
27
27
|
{# Prototype kits #}
|
|
28
28
|
{% set assetsURL = "/" + pageInfo.version %}
|
|
@@ -38,6 +38,8 @@
|
|
|
38
38
|
{% set page_title = pageConfig.title %}
|
|
39
39
|
{% elif pageInfo and pageInfo.title %}
|
|
40
40
|
{% set page_title = pageInfo.title %}
|
|
41
|
+
{% elif page and page.title %}
|
|
42
|
+
{% set page_title = page.title %}
|
|
41
43
|
{% else %}
|
|
42
44
|
{% set page_title = "ONS Design System" %}
|
|
43
45
|
{% endif %}
|
package/package.json
CHANGED
package/scss/patternlib.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import 'vars/grid';
|
|
2
|
+
@import 'vars/typography';
|
|
2
3
|
@import 'vars/vars';
|
|
3
4
|
@import 'helpers/index';
|
|
4
5
|
@import '../views/partials/example/example';
|
|
@@ -152,7 +153,7 @@
|
|
|
152
153
|
color: var(--ons-color-text-inverse);
|
|
153
154
|
display: inline-block;
|
|
154
155
|
font-size: 0.7rem;
|
|
155
|
-
font-weight:
|
|
156
|
+
font-weight: $font-weight-bold;
|
|
156
157
|
letter-spacing: 0.1rem;
|
|
157
158
|
margin-right: 0.5rem;
|
|
158
159
|
outline: 2px solid transparent; // Add transparent outline because Windows High Contrast Mode doesn't show background
|
package/scss/vars/_colors.scss
CHANGED
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
--ons-color-banner-bg-dark: var(--ons-color-grey-15);
|
|
67
67
|
--ons-color-page-light: var(--ons-color-white);
|
|
68
68
|
--ons-color-banner-browser-bg: var(--ons-color-black);
|
|
69
|
+
--ons-color-hero-bg: var(--ons-color-branded-tint);
|
|
69
70
|
|
|
70
71
|
// Typography
|
|
71
72
|
--ons-color-text: var(--ons-color-black);
|