Skip to content

Commit 0fcdbce

Browse files
add release files
1 parent 42c9730 commit 0fcdbce

File tree

7 files changed

+30
-20
lines changed

7 files changed

+30
-20
lines changed

dist/0.22.5/core.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/0.22.5/core.css.gz

14.1 KB
Binary file not shown.

dist/0.22.5/core.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/0.22.5/core.js.gz

30.8 KB
Binary file not shown.

dist/_blocks/masthead/_masthead.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ body {
1919
.b-masthead nav {
2020
width: 100%;
2121
margin-right: 50px;
22+
overflow-x: scroll;
2223
}
2324

2425
//
@@ -234,3 +235,9 @@ body {
234235
// }
235236
}
236237
}
238+
239+
.masthead__actions.nav__menu--vert {
240+
position: absolute;
241+
right: 0;
242+
background-color: white;
243+
}

dist/_blocks/masthead/masthead.js

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import dialogPolyfill from 'dialog-polyfill';
1+
// import dialogPolyfill from 'dialog-polyfill';
22

33
// TODO revert this back when done fixing errors
44
import { closeMenuState } from '../../_components/navmenu/navmenu';
55

6-
let scrollPosition;
6+
// let scrollPosition;
77
let lastScrollTop = 0;
88
let st;
99
const body = document.querySelector('body');
@@ -58,21 +58,22 @@ const detectOverflowOnMasthead = () => {
5858
* @desc adds class to display red banner error stating the menu is too wide
5959
*/
6060

61-
const navContainer = document.querySelector('.b-masthead nav');
62-
const navMenu = document.querySelector('.nav__menu--top');
63-
const initialNavMenuWidth = navMenu && navMenu.offsetWidth + 50;
61+
// const navContainer = document.querySelector('.b-masthead nav');
62+
// const navMenu = document.querySelector('.nav__menu--top');
63+
// const initialNavMenuWidth = navMenu && navMenu.offsetWidth + 50;
6464

6565
const toggleMobileMenu = () => {
6666
if (!mastheadNav) return;
6767

6868
const mastheadClassList = mastheadNavIcon.parentNode.classList;
69-
const navContainerWidth = mastheadClassList.contains('u-hide-l')
70-
? navContainer.offsetWidth
71-
: navContainer.offsetWidth + 52;
69+
// const navContainerWidth = mastheadClassList.contains('u-hide-l')
70+
// ? navContainer.offsetWidth
71+
// : navContainer.offsetWidth + 52;
7272

7373
// capture div width and compare against window width
7474
// TODO: aria expanded stays at true when nav comes back into view, this causes the grey bg on buttons with submenus
75-
if (initialNavMenuWidth >= navContainerWidth || window.innerWidth <= 760) {
75+
// if (initialNavMenuWidth >= navContainerWidth || window.innerWidth <= 760) {
76+
if (window.innerWidth <= 760) {
7677
// Moves nav to mobile dialogue in footer
7778
modalMenu.appendChild(mastheadNav);
7879

@@ -244,15 +245,15 @@ const handleResize = () => {
244245
* @desc init function for the masthead functionality
245246
*/
246247
const handleLoading = () => {
247-
window.addEventListener(
248-
'load',
249-
() => {
250-
toggleMobileMenu();
251-
toggleAppendMenu();
252-
closeMenuState();
253-
},
254-
false
255-
);
248+
// window.addEventListener(
249+
// 'load',
250+
// () => {
251+
toggleMobileMenu();
252+
toggleAppendMenu();
253+
closeMenuState();
254+
// },
255+
// false
256+
// );
256257
};
257258

258259
const handleClick = () => {
@@ -306,9 +307,9 @@ const handleKeyPress = () => {
306307
*/
307308
const Masthead = () => {
308309
if (!masthead) return;
310+
handleLoading();
309311
handleScroll();
310312
handleResize();
311-
handleLoading();
312313
handleClick();
313314
handleKeyPress();
314315
};

dist/_core/scss/tools/_vars.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
// 0. RDS version
1818
// --------------
19-
$version: '0.22.1';
19+
$version: '0.22.5';
2020

2121
// 1. Media query breakpoints
2222
// --------------------------

0 commit comments

Comments
 (0)