Skip to content

Commit b4403dc

Browse files
authored
Merge pull request #62 from rackerlabs/surf-654-nestednav-bug
chore(bug): fixed nav bug
2 parents 28ef546 + e96061d commit b4403dc

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

source/components/navigation/navigation.less

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@
5454

5555
hx-reveal {
5656
&[open] {
57-
header {
57+
& > #toggle.hx-reveal, //polyfilled browsers
58+
& > header { //modern browsers
5859
.toggle-icon {
5960
transform: scaleY(-1);
6061
}
6162
}
6263
}
6364

64-
/* Indentation */
6565
// Level 1
6666
header {
6767
padding-left: @l1-indent;
@@ -75,6 +75,7 @@
7575
hx-reveal {
7676
header {
7777
padding-left: @l2-indent;
78+
text-transform: capitalize;
7879
}
7980

8081
a {

source/components/reveal/HxReveal.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ window.addEventListener('WebComponentsReady', function () {
66
:host {
77
display: block;
88
}
9-
10-
:host([open]) #content {
11-
display: block;
12-
}
139
1410
#content {
1511
display: none;
1612
}
1713
14+
:host([open]) > #content {
15+
display: block;
16+
}
17+
1818
#toggle {
1919
background-color: transparent;
2020
border: none;
@@ -55,7 +55,7 @@ window.addEventListener('WebComponentsReady', function () {
5555
constructor() {
5656
super();
5757
this.attachShadow({mode: 'open'});
58-
if (window.ShadyCSS ) {
58+
if (window.ShadyCSS) {
5959
ShadyCSS.prepareTemplate(template, 'hx-reveal');
6060
ShadyCSS.styleElement(this);
6161
}

0 commit comments

Comments
 (0)