diff --git a/CHANGELOG.md b/CHANGELOG.md index 044fbac6bc..05cbef96ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Fix carousel dots overlapping thumbnails on Product page. [#1351](https://github.com/bigcommerce/cornerstone/pull/1351) - Cornerstone schema updates and organization [#1350](https://github.com/bigcommerce/cornerstone/pull/1350) - Add div and id attributes so that contact form steps can be tracked [#1317](https://github.com/bigcommerce/cornerstone/pull/1317) +- Added "activePage" as a active class in navigation menus and web pages. [#1354](https://github.com/bigcommerce/cornerstone/pull/1354) ## 2.4.0 (2018-09-14) - Fix encoding issues on Account Signup Form ("'" characters showing in country name)[#1341] (https://github.com/bigcommerce/cornerstone/pull/1341) diff --git a/assets/scss/components/stencil/navPages/_navPages.scss b/assets/scss/components/stencil/navPages/_navPages.scss index 107e90653f..c189f84b55 100644 --- a/assets/scss/components/stencil/navPages/_navPages.scss +++ b/assets/scss/components/stencil/navPages/_navPages.scss @@ -209,7 +209,7 @@ } } - &:hover { + &:hover, &.activePage { color: stencilColor("navPages-color-hover"); // scss-lint:disable NestingDepth diff --git a/templates/components/common/navigation-dropdown.html b/templates/components/common/navigation-dropdown.html index 340ca19f6a..8a2d86569a 100644 --- a/templates/components/common/navigation-dropdown.html +++ b/templates/components/common/navigation-dropdown.html @@ -6,12 +6,12 @@ {{#each children}} {{/each}} diff --git a/templates/components/common/navigation-list-alternate.html b/templates/components/common/navigation-list-alternate.html index 1aa65604f5..1c0f8d2f7a 100644 --- a/templates/components/common/navigation-list-alternate.html +++ b/templates/components/common/navigation-list-alternate.html @@ -1,8 +1,8 @@ {{#if children}} - + {{name}} {{> components/common/navigation-dropdown}} {{else}} - {{name}} + {{name}} {{/if}} diff --git a/templates/components/common/navigation-list.html b/templates/components/common/navigation-list.html index 5e6e498976..7a96c9086d 100644 --- a/templates/components/common/navigation-list.html +++ b/templates/components/common/navigation-list.html @@ -1,5 +1,5 @@ {{#if children}} - + {{name}} {{else}} -{{name}} +{{name}} {{/if}} diff --git a/templates/components/common/navigation-menu.html b/templates/components/common/navigation-menu.html index b406afa954..c5a0d8227d 100644 --- a/templates/components/common/navigation-menu.html +++ b/templates/components/common/navigation-menu.html @@ -16,7 +16,7 @@ {{#unless theme_settings.hide_content_navigation}} {{#each pages}} {{/each}} {{/unless}}