-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into optional-right-columns
- Loading branch information
Showing
58 changed files
with
1,655 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"all": true, | ||
"branches": 95, | ||
"branches": 90, | ||
"lines": 95, | ||
"check-coverage": true, | ||
"compact": false, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
window.GOVUK = window.GOVUK || {} | ||
window.GOVUK.Modules = window.GOVUK.Modules || {}; | ||
|
||
(function (Modules) { | ||
'use strict' | ||
|
||
function AppBMainNavigation (module) { | ||
this.module = module | ||
this.module.button = this.module.querySelector('button') | ||
this.module.nav = this.module.querySelector('#app-b-main-nav__nav') | ||
this.module.nav.classList.add('app-b-main-nav__nav--hidden') | ||
this.module.button.classList.remove('js-app-b-main-nav__button') | ||
} | ||
|
||
AppBMainNavigation.prototype.init = function () { | ||
this.module.button.addEventListener('click', this.toggleMenu.bind(this)) | ||
} | ||
|
||
AppBMainNavigation.prototype.toggleMenu = function (e) { | ||
var ariaExpanded = this.module.button.getAttribute('aria-expanded') === 'true' | ||
this.module.nav.classList.toggle('app-b-main-nav__nav--hidden') | ||
this.module.button.setAttribute('aria-expanded', `${!ariaExpanded}`) | ||
} | ||
|
||
Modules.AppBMainNavigation = AppBMainNavigation | ||
})(window.GOVUK.Modules) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@import "govuk_publishing_components/individual_component_support"; | ||
|
||
.landing-page-header { | ||
// I've used the hex value for the background colour as it doesn't exist in the colour palette | ||
background-color: #231F20; | ||
} | ||
|
||
.landing-page-header__blue-bar { | ||
background-color: govuk-colour("blue"); | ||
height: govuk-spacing(2); | ||
} | ||
|
||
.landing-page-header__org { | ||
padding-top: govuk-spacing(2); | ||
padding-bottom: govuk-spacing(6); | ||
|
||
// I've added this styling here rather than in the gem because it's application specific | ||
// and it would introduce further work to make this variation work in the gem without | ||
// affecting the other variants. | ||
// TODO add this as a variant in the components gem. | ||
.gem-c-organisation-logo__link:link:not(:hover) { | ||
text-decoration: none; | ||
} | ||
} |
Oops, something went wrong.