mp-design-system 1.2.1 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-design-system",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "dev": "npm-run-all --parallel bundle:*",
@@ -7,6 +7,8 @@
7
7
  @include padding-left('l');
8
8
  position: relative;
9
9
  @include step(-1);
10
+ box-decoration-break: clone;
11
+ -webkit-box-decoration-break: clone;
10
12
 
11
13
  &:before {
12
14
  transform: translateY(-50%);
@@ -92,11 +94,9 @@
92
94
  }
93
95
  }
94
96
 
95
- .c-off-canvas {
96
- .c-checkbox-group {
97
- &> * {
98
- width: 100%;
99
- margin-left: 0;
100
- }
97
+ .c-off-canvas .c-checkbox-group {
98
+ &> * {
99
+ width: 100%;
100
+ margin-left: 0;
101
101
  }
102
102
  }
@@ -7,10 +7,10 @@
7
7
  {% endif %}
8
8
 
9
9
  <div>
10
- <div id="{{ params.target.id }}" class="u-flow--m">
10
+ <div id="{{ params.target.id }}" class="c-checkbox-group u-flow--m">
11
11
  <label class="c-label" data-off-canvas="header">{{ params.header }}</label>
12
- <div class="o-grid o-grid--of-three c-checkbox-group" data-off-canvas="main">
13
- {% for _ in ["3D structure / imaging", "Binding affinity", "Binding kinetics", "Chemical identification", "Contaminant detection and analysis", "Crystal structure determination", "Elemental analysis", "Elemental quantification", "Enzyme kinetics", "Epitaxy analysis", "Ground truthing", "Interface roughness", "Label-free analysis", "Microrheology", "Moisture content", "Molecular size", "Molecular structure", "Molecular weight", "Particle concentration", "Particle shape", "Particle size", "Phase identification", "Phase quantification", "Pore size distribution", "Powder flow", "Protein aggregation", "Protein mobility", "Protein stability", "Reciprocal space analysis", "Remote sensing", "Residual stress", "Texture analysis", "Thin film metrology", "Viscosity", "Zeta potential"] %}
12
+ <div class="o-grid o-grid--of-three" data-off-canvas="main">
13
+ {% for _ in ["3D structure / imaging", "Binding affinity", "Binding kinetics", "Chemical identification", "Contaminant detection and analysis", "Crystal structure determination", "Elemental analysis", "Elemental quantification", "Enzyme kinetics", "Epitaxy analysis"] %}
14
14
  <div>
15
15
  {{ checkbox({
16
16
  label: _,
@@ -21,7 +21,7 @@
21
21
  </div>
22
22
  {% endfor %}
23
23
  </div>
24
- <button class="mp c-button o-off-canvas__update" data-off-canvas="footer" data-off-canvas-close="true">{{ params.target.button.text }}</button>
24
+ <button class="mp c-button o-off-canvas__update" data-off-canvas="footer" data-off-canvas-close="true" onclick="return false">{{ params.target.button.text }}</button>
25
25
  </div>
26
26
 
27
27
  <button class="{{ classNames }}" data-target="{{ params.target.id }}" aria-controls="{{ params.target.id }}" aria-expanded="false" aria-label="Toggle {{ params.header }}" onclick="return false">{{ params.toggle.text }}</button>
@@ -92,4 +92,11 @@
92
92
  .c-off-canvas--mobile {
93
93
  display: none !important;
94
94
  }
95
+
96
+ .c-checkbox-group {
97
+ [data-off-canvas="header"],
98
+ [data-off-canvas="footer"] {
99
+ display: none;
100
+ }
101
+ }
95
102
  }
@@ -77,7 +77,7 @@ function createOffCanvas(target) {
77
77
  <main class="c-off-canvas__main">${targetMainContent}</main>
78
78
  <footer class="c-off-canvas__footer">
79
79
  ${targetFooterContent}
80
- <button class="mp c-twi c-twi--left c-off-canvas__close" data-off-canvas-close="true">
80
+ <button class="mp c-twi c-twi--left c-off-canvas__close" data-off-canvas-close="true" onclick="return false">
81
81
  <span>Cancel</span>
82
82
  <svg role="img" aria-hidden="true" focusable="false" class="mp c-icon c-icon--cross">
83
83
  <use xlink:href="/static/svg/sprite.svg#cross"></use>