Skip to content

Commit d65ae19

Browse files
authored
Merge pull request linode#221 from linode/release-1.1.31
Release 1.1.31
2 parents 0c78e98 + 98db00e commit d65ae19

27 files changed

+1998
-1559
lines changed

gatsby-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ module.exports = {
9090
resolve: `gatsby-plugin-purgecss`,
9191
options: {
9292
tailwind: true,
93+
whitelistPatternsChildren: [/consent_blackbar/],
9394
whitelist: [
9495
"mobile",
9596
"mobile-nav",

src/components/2_molecules/navigation/col.js

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
import React from "react";
2+
const _ = require("lodash");
23

34
const Col = props => (
4-
<div className="nav__wrapper">
5-
<ul
6-
role="menu"
7-
className={`
8-
sub-menu__item
9-
sub-menu__item--reg
10-
${props.name}-nav
11-
`}
12-
aria-expanded="false"
13-
>
14-
<h6 className="sub-menu__header">{props.header}</h6>
15-
{props.children}
16-
</ul>
5+
<div className="o-layout__module">
6+
<h6>{props.header}</h6>
7+
<nav className="o-menu">
8+
<ul
9+
role="menu"
10+
id={`menu-submenu-${_.kebabCase(props.name)}`}
11+
className="o-menu__list"
12+
>
13+
{props.children}
14+
</ul>
15+
</nav>
1716
</div>
1817
);
1918

src/components/2_molecules/navigation/communityMenus.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@ import CommunityPrimary from "./communityPrimary";
44
import CommunityServices from "./communityServices";
55

66
const CommunityMenus = () => (
7-
<>
8-
<div className="sub-menu__col">
9-
<div className="sub-menu__content">
7+
<div className="o-layout__row c-sub-menu c-sub-menu--community" id="sub-menu--community">
8+
<div className="o-layout__colset">
9+
<div className="o-layout__col">
1010
<CommunityPrimary />
1111
</div>
12-
</div>
13-
<div className="sub-menu__col">
14-
<div className="sub-menu__content">
12+
<div className="o-layout__col">
1513
<CommunityServices />
1614
</div>
15+
<div className="o-layout__col">
16+
17+
</div>
1718
</div>
18-
</>
19+
</div>
1920
);
2021

2122
export default CommunityMenus;

src/components/2_molecules/navigation/communityPrimary.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,22 @@ import React from "react";
22
import { StaticQuery, graphql } from "gatsby";
33
import Col from "./col";
44

5-
const _ = require("lodash");
6-
75
const CommunityPrimary = ({ data }) => {
86
return (
97
<Col name="community-primary" header="Community">
108
{data.allCommunityPrimary.edges.map((link, i) => {
119
const node = link.node;
1210
return (
13-
<li className="sub-menu__li sub-menu__header-li" key={i}>
11+
<li className="o-menu__item" key={i}>
1412
<a
1513
key={node.id}
1614
href={node.url ? node.url : null}
17-
className={`
18-
header__link
19-
sub-menu__link
20-
sub-menu__header-link
21-
${_.kebabCase(node.title)}
22-
`}
15+
className="o-menu__link"
2316
role="menuitem"
2417
>
25-
{node.title}
18+
<span className="o-menu__title">
19+
{node.title}
20+
</span>
2621
</a>
2722
</li>
2823
);

src/components/2_molecules/navigation/communityServices.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,22 @@ import React from "react";
22
import { StaticQuery, graphql } from "gatsby";
33
import Col from "./col";
44

5-
const _ = require("lodash");
6-
75
const CommunityServices = ({ data }) => {
86
return (
9-
<Col name="community-services" header="Engage">
7+
<Col name="community-secondary" header="Engage With Us">
108
{data.allCommunityServices.edges.map((link, i) => {
119
const node = link.node;
1210
return (
13-
<li className="sub-menu__li sub-menu__header-li" key={i}>
11+
<li className="o-menu__item" key={i}>
1412
<a
1513
key={node.id}
1614
href={node.url ? node.url : null}
17-
className={`
18-
header__link
19-
sub-menu__link
20-
${_.kebabCase(node.title)}
21-
`}
15+
className="o-menu__link"
2216
role="menuitem"
2317
>
24-
{node.title}
18+
<span className="o-menu__title">
19+
{node.title}
20+
</span>
2521
</a>
2622
</li>
2723
);

src/components/2_molecules/navigation/primaryMobile.js

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
import React from "react";
22
import { StaticQuery, graphql } from "gatsby";
33

4-
import Col from "./col";
5-
64
const PrimaryMobileNav = ({ data }) => {
75
return (
8-
<Col name="primary-mobile" header="">
6+
<nav className="o-menu o-menu--featured">
7+
<ul id="menu-submenu-mobile-primary" className="o-menu__list">
98
{data.allPrimaryMobile.edges.map(link => {
109
const node = link.node;
1110
return (
12-
<li className="sub-menu__li sub-menu__header-li" key={node.id}>
13-
<a
14-
href={node.url ? node.url : null}
15-
className="header__link sub-menu__link sub-menu__header-link mobile__link"
16-
role="menuitem"
17-
>
11+
<li className="o-menu__item" key={node.id}>
12+
<a
13+
href={node.url ? node.url : null}
14+
className="o-menu__link"
15+
role="menuitem"
16+
>
17+
<span className="o-menu__title">
1818
{node.title}
19-
</a>
20-
</li>
19+
</span>
20+
</a>
21+
</li>
2122
);
22-
})}
23-
</Col>
23+
})}
24+
</ul>
25+
</nav>
2426
);
2527
};
2628

0 commit comments

Comments
 (0)