nsw-design-system 3.2.1 → 3.2.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.
package/CHANGELOG.md CHANGED
@@ -4,10 +4,22 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [v3.2.2](https://github.com/digitalnsw/nsw-design-system/compare/v3.2.1...v3.2.2)
8
+
9
+ - Updating calc syntax for Hero banner [`#233`](https://github.com/digitalnsw/nsw-design-system/pull/233)
10
+ - Fix/main nav [`#232`](https://github.com/digitalnsw/nsw-design-system/pull/232)
11
+ - Update main-nav.js [`9c9af06`](https://github.com/digitalnsw/nsw-design-system/commit/9c9af06b932929155b5f6446d2f3a7e568138954)
12
+ - Update main-nav.js [`5874a88`](https://github.com/digitalnsw/nsw-design-system/commit/5874a88bb9a7fb51cb0d59f26ec408c9ddb0be9b)
13
+ - Update main-nav.js [`b6a0029`](https://github.com/digitalnsw/nsw-design-system/commit/b6a0029cdf4c16ac597fc588dd0e802beb6e5ae0)
14
+ - Update main-nav.js [`16ce45c`](https://github.com/digitalnsw/nsw-design-system/commit/16ce45cf7058e664494c4710ce833ae1f1b66129)
15
+
7
16
  #### [v3.2.1](https://github.com/digitalnsw/nsw-design-system/compare/v3.2.0...v3.2.1)
8
17
 
18
+ > 1 July 2022
19
+
9
20
  - Component variant updates [`#227`](https://github.com/digitalnsw/nsw-design-system/pull/227)
10
21
  - What's happening update [`#231`](https://github.com/digitalnsw/nsw-design-system/pull/231)
22
+ - Built HTMLstarterkit and updated CHANGELOG.md [`66201ea`](https://github.com/digitalnsw/nsw-design-system/commit/66201ea90af7f5286d4cc71c4fe1e112f2d95d9c)
11
23
  - Footer variant updates and social icons [`309c99e`](https://github.com/digitalnsw/nsw-design-system/commit/309c99ea7d9b060aecbfe1bf13e966ef76780f22)
12
24
  - Hero banner: off-white variant [`dff726f`](https://github.com/digitalnsw/nsw-design-system/commit/dff726feb93979549d9d60e601b98af91e51c15f)
13
25
  - Footer variants update [`d716913`](https://github.com/digitalnsw/nsw-design-system/commit/d7169134b1efe57a27d9457719ac2a6640d534bd)
package/dist/js/main.js CHANGED
@@ -383,9 +383,13 @@
383
383
  }, {
384
384
  key: "buttonClickDesktop",
385
385
  value: function buttonClickDesktop(e) {
386
- this.saveElements(e);
387
- this.toggleSubNavDesktop();
388
- e.preventDefault();
386
+ var isDesktop = this.breakpoint.matches;
387
+
388
+ if (!isDesktop || !e.target.closest('.nsw-main-nav__sub-nav')) {
389
+ this.saveElements(e);
390
+ this.toggleSubNavDesktop();
391
+ e.preventDefault();
392
+ }
389
393
  }
390
394
  }, {
391
395
  key: "buttonKeydownDesktop",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nsw-design-system",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "Design system for Digital NSW",
5
5
  "main": "dist/main.js",
6
6
  "style": "dist/main.css",
@@ -134,7 +134,7 @@
134
134
 
135
135
  @include breakpoint('xl') {
136
136
  width: 50%;
137
- padding-left: calc(var(--nsw-container-width)/12+#{rem($grid-gutters)}*2);
137
+ padding-left: calc(var(--nsw-container-width)/12 + #{rem($grid-gutters)}*2);
138
138
  }
139
139
  }
140
140
 
@@ -230,7 +230,7 @@
230
230
 
231
231
  @include breakpoint('xl') {
232
232
  width: 50%;
233
- padding-left: calc(var(--nsw-container-width)/4+#{rem($grid-gutters)}*2);
233
+ padding-left: calc(var(--nsw-container-width)/4 + #{rem($grid-gutters)}*2);
234
234
  }
235
235
  }
236
236
  }
@@ -139,9 +139,12 @@ class Navigation {
139
139
  }
140
140
 
141
141
  buttonClickDesktop(e) {
142
- this.saveElements(e)
143
- this.toggleSubNavDesktop()
144
- e.preventDefault()
142
+ const isDesktop = this.breakpoint.matches
143
+ if (!isDesktop || !e.target.closest('.nsw-main-nav__sub-nav')) {
144
+ this.saveElements(e)
145
+ this.toggleSubNavDesktop()
146
+ e.preventDefault()
147
+ }
145
148
  }
146
149
 
147
150
  buttonKeydownDesktop(e) {