@madgex/design-system 1.24.0 → 1.24.2

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.
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" ?>
2
2
  <!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
3
- <coverage lines-valid="173" lines-covered="49" line-rate="0.2832" branches-valid="43" branches-covered="9" branch-rate="0.20929999999999999" timestamp="1571244155728" complexity="0" version="0.1">
3
+ <coverage lines-valid="173" lines-covered="49" line-rate="0.2832" branches-valid="43" branches-covered="9" branch-rate="0.20929999999999999" timestamp="1571678843069" complexity="0" version="0.1">
4
4
  <sources>
5
5
  <source>/var/lib/jenkins/jobs/madgex-design-system/branches/master/workspace</source>
6
6
  </sources>
@@ -376,7 +376,7 @@ export default accordion;
376
376
  </div><!-- /wrapper -->
377
377
  <div class='footer quiet pad2 space-top1 center small'>
378
378
  Code coverage
379
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Oct 16 2019 17:42:35 GMT+0100 (BST)
379
+ generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Oct 21 2019 18:27:23 GMT+0100 (BST)
380
380
  </div>
381
381
  </div>
382
382
  <script src="../../prettify.js"></script>
@@ -80,7 +80,7 @@
80
80
  </div><!-- /wrapper -->
81
81
  <div class='footer quiet pad2 space-top1 center small'>
82
82
  Code coverage
83
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Oct 16 2019 17:42:35 GMT+0100 (BST)
83
+ generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Oct 21 2019 18:27:23 GMT+0100 (BST)
84
84
  </div>
85
85
  </div>
86
86
  <script src="../../prettify.js"></script>
@@ -80,7 +80,7 @@
80
80
  </div><!-- /wrapper -->
81
81
  <div class='footer quiet pad2 space-top1 center small'>
82
82
  Code coverage
83
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Oct 16 2019 17:42:35 GMT+0100 (BST)
83
+ generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Oct 21 2019 18:27:23 GMT+0100 (BST)
84
84
  </div>
85
85
  </div>
86
86
  <script src="../../prettify.js"></script>
@@ -499,7 +499,7 @@ export default tabs;
499
499
  </div><!-- /wrapper -->
500
500
  <div class='footer quiet pad2 space-top1 center small'>
501
501
  Code coverage
502
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Oct 16 2019 17:42:35 GMT+0100 (BST)
502
+ generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Oct 21 2019 18:27:23 GMT+0100 (BST)
503
503
  </div>
504
504
  </div>
505
505
  <script src="../../prettify.js"></script>
@@ -132,7 +132,7 @@
132
132
  </div><!-- /wrapper -->
133
133
  <div class='footer quiet pad2 space-top1 center small'>
134
134
  Code coverage
135
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Oct 16 2019 17:42:35 GMT+0100 (BST)
135
+ generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Oct 21 2019 18:27:23 GMT+0100 (BST)
136
136
  </div>
137
137
  </div>
138
138
  <script src="prettify.js"></script>
@@ -88,7 +88,7 @@
88
88
  </div><!-- /wrapper -->
89
89
  <div class='footer quiet pad2 space-top1 center small'>
90
90
  Code coverage
91
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Oct 16 2019 17:42:35 GMT+0100 (BST)
91
+ generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Oct 21 2019 18:27:23 GMT+0100 (BST)
92
92
  </div>
93
93
  </div>
94
94
  <script src="../prettify.js"></script>
@@ -58,7 +58,7 @@ import './polyfills/closest';
58
58
  </div><!-- /wrapper -->
59
59
  <div class='footer quiet pad2 space-top1 center small'>
60
60
  Code coverage
61
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Oct 16 2019 17:42:35 GMT+0100 (BST)
61
+ generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Oct 21 2019 18:27:23 GMT+0100 (BST)
62
62
  </div>
63
63
  </div>
64
64
  <script src="../prettify.js"></script>
@@ -106,7 +106,7 @@
106
106
  </div><!-- /wrapper -->
107
107
  <div class='footer quiet pad2 space-top1 center small'>
108
108
  Code coverage
109
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Oct 16 2019 17:42:35 GMT+0100 (BST)
109
+ generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Oct 21 2019 18:27:23 GMT+0100 (BST)
110
110
  </div>
111
111
  </div>
112
112
  <script src="../prettify.js"></script>
@@ -106,7 +106,7 @@ import accordion from '../components/accordion/accordion';
106
106
  </div><!-- /wrapper -->
107
107
  <div class='footer quiet pad2 space-top1 center small'>
108
108
  Code coverage
109
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Oct 16 2019 17:42:35 GMT+0100 (BST)
109
+ generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Oct 21 2019 18:27:23 GMT+0100 (BST)
110
110
  </div>
111
111
  </div>
112
112
  <script src="../prettify.js"></script>
@@ -100,7 +100,7 @@
100
100
  </div><!-- /wrapper -->
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage
103
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Oct 16 2019 17:42:35 GMT+0100 (BST)
103
+ generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Oct 21 2019 18:27:23 GMT+0100 (BST)
104
104
  </div>
105
105
  </div>
106
106
  <script src="../../prettify.js"></script>
@@ -80,7 +80,7 @@
80
80
  </div><!-- /wrapper -->
81
81
  <div class='footer quiet pad2 space-top1 center small'>
82
82
  Code coverage
83
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Oct 16 2019 17:42:35 GMT+0100 (BST)
83
+ generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Oct 21 2019 18:27:23 GMT+0100 (BST)
84
84
  </div>
85
85
  </div>
86
86
  <script src="../../prettify.js"></script>
@@ -535,7 +535,7 @@
535
535
  </div><!-- /wrapper -->
536
536
  <div class='footer quiet pad2 space-top1 center small'>
537
537
  Code coverage
538
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Oct 16 2019 17:42:35 GMT+0100 (BST)
538
+ generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Oct 21 2019 18:27:23 GMT+0100 (BST)
539
539
  </div>
540
540
  </div>
541
541
  <script src="../prettify.js"></script>
@@ -80,7 +80,7 @@
80
80
  </div><!-- /wrapper -->
81
81
  <div class='footer quiet pad2 space-top1 center small'>
82
82
  Code coverage
83
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Oct 16 2019 17:42:35 GMT+0100 (BST)
83
+ generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Oct 21 2019 18:27:23 GMT+0100 (BST)
84
84
  </div>
85
85
  </div>
86
86
  <script src="../prettify.js"></script>
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 16 Oct 2019 16:43:12 GMT
3
+ * Generated on Mon, 21 Oct 2019 17:27:44 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 16 Oct 2019 16:43:12 GMT
3
+ * Generated on Mon, 21 Oct 2019 17:27:44 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,7 +1,7 @@
1
1
 
2
2
  /*
3
3
  Do not edit directly
4
- Generated on Wed, 16 Oct 2019 16:43:12 GMT
4
+ Generated on Mon, 21 Oct 2019 17:27:44 GMT
5
5
  */
6
6
 
7
7
  $mds-color-brand-1-base: #1b75bb !default;
package/fractal.js CHANGED
@@ -17,6 +17,7 @@ const nunjucks = require('@frctl/nunjucks')({
17
17
  },
18
18
  globals: {
19
19
  // global-name: global-val
20
+ defaultIconPath: '/assets/icons.svg',
20
21
  },
21
22
  extensions: {
22
23
  // extension-name: function extensionFunc(){}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madgex/design-system",
3
- "version": "1.24.0",
3
+ "version": "1.24.2",
4
4
  "scripts": {
5
5
  "clean": "rimraf dist public tokens/build",
6
6
  "commit": "commit",
@@ -5,6 +5,11 @@
5
5
  - `path`: if you need to use a different path than the default (*/assets/icons.svg*)
6
6
  - `visuallyHiddenLabel`: add a visually hidden label (see Accessibility notes below)
7
7
 
8
+ **Note regarding the default path of the icons file**:
9
+ If you would like to change the default path, you can use the `defaultIconPath` variable in Nunjucks. You can set it as global variable like this:
10
+
11
+ `env.addGlobal('defaultIconPath', value)`
12
+
8
13
  ## Accessibility
9
14
 
10
15
  The SVGs are hidden from screen readers by default (with the use of `aria-hidden=true` and `focusable=false`). When the icons are used without a visible label, a **visually hidden label needs to be added** instead.
@@ -1,5 +1,12 @@
1
+ {%- set iconPath -%}
2
+ {%- if defaultIconPath -%}
3
+ {{- defaultIconPath -}}
4
+ {%- else -%}
5
+ '/assets/icons.svg'
6
+ {%- endif -%}
7
+ {%- endset -%}
1
8
  <svg aria-hidden="true" focusable="false" class="mds-icon mds-icon--{{ params.iconName }}{% if params.classes %} {{ params.classes }}{% endif %}">
2
- <use href="{{ params.path | default('/assets/icons.svg') }}#{{ params.iconName }}" />
9
+ <use href="{{ params.path | default(iconPath) }}#{{ params.iconName }}" />
3
10
  </svg>
4
11
  {%- if params.visuallyHiddenLabel %}
5
12
  <span class="mds-visually-hidden">{{ params.visuallyHiddenLabel }}</span>