Skip to content

Commit 93aeb31

Browse files
Merge branch 'hotfix/0.22.5'
2 parents 7037dcc + 0fcdbce commit 93aeb31

File tree

15 files changed

+69
-46
lines changed

15 files changed

+69
-46
lines changed

app/config/sculpin_site.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Site wide global vars - eg. {{ site.title }} can be used in templates
22
title: RDS Local
33
subtitle: RDS
4-
version: 0.22.1
4+
version: 0.22.5
55
cssSize: 45KB
66
cssG: 10KB
77
jsSize: 10KB

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/CHANGELOG.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,28 @@
22

33
All notable changes to the project will be documented here, in this file
44

5-
## [v0.22.1](https://github.com/ravendesignsystem/rds/releases/tag/0.21.2 2021-08-25
5+
## [v0.22.5](https://github.com/ravendesignsystem/rds/releases/tag/0.22.5 2022-01-31
6+
7+
- **Fixed:** Fixed Masthead disappearing on desktop
8+
9+
10+
## [v0.22.1](https://github.com/ravendesignsystem/rds/releases/tag/0.22.1 2021-08-25
611

712
- **Fixed:** fixed navbar issue
8-
## [v0.22.0](https://github.com/ravendesignsystem/rds/releases/tag/0.21.2 2021-03-04
13+
14+
15+
## [v0.22.0](https://github.com/ravendesignsystem/rds/releases/tag/0.22.0 2021-03-04
916

1017
- **Fixed:** fixed bug in twig template causing local compilation errors
1118
- **Fixed:** fixed FileManagerPlugin syntax in Webpack config to align with updates
1219
- **Added:** update logos to new brand!
20+
21+
1322
## [v0.21.2](https://github.com/ravendesignsystem/rds/releases/tag/0.21.2 2021-03-04
1423

1524
- **Fixed:** fix masthead for mobile
25+
26+
1627
## [v0.21.1](https://github.com/ravendesignsystem/rds/releases/tag/0.21.1 2020-10-21
1728

1829
Small changes for testing.

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
// --------------------------

dist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@carleton/rds",
3-
"version": "0.22.1",
3+
"version": "0.22.5",
44
"description": "RDS, Carleton University’s design system, is a living digital organism uniting campus wide teams around a common visual language.",
55
"main": "core/js/core",
66
"scripts": {

0 commit comments

Comments
 (0)