govuk-frontend
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -1658,2 +1658,3 @@ (function (global, factory) { | ||
$tab.setAttribute('aria-selected', 'false'); | ||
$tab.classList.remove('govuk-tabs__tab--selected'); | ||
$tab.setAttribute('tabindex', '-1'); | ||
@@ -1664,2 +1665,3 @@ }; | ||
$tab.setAttribute('aria-selected', 'true'); | ||
$tab.classList.add('govuk-tabs__tab--selected'); | ||
$tab.setAttribute('tabindex', '0'); | ||
@@ -1669,3 +1671,3 @@ }; | ||
Tabs.prototype.getCurrentTab = function () { | ||
return this.$module.querySelector('[role=tab][aria-selected=true]') | ||
return this.$module.querySelector('.govuk-tabs__tab--selected') | ||
}; | ||
@@ -1672,0 +1674,0 @@ |
@@ -291,2 +291,14 @@ # Breadcrumbs | ||
<th class="govuk-table__header" scope="row">items.{}.attributes</th> | ||
<td class="govuk-table__cell ">object</td> | ||
<td class="govuk-table__cell ">No</td> | ||
<td class="govuk-table__cell ">Any extra HTML attributes (for example data attributes) to add to the breadcrumb anchor item.</td> | ||
</tr> | ||
<tr class="govuk-table__row"> | ||
<th class="govuk-table__header" scope="row">classes</th> | ||
@@ -293,0 +305,0 @@ |
@@ -171,2 +171,14 @@ # Error summary | ||
<th class="govuk-table__header" scope="row">errorList.{}.attributes</th> | ||
<td class="govuk-table__cell ">object</td> | ||
<td class="govuk-table__cell ">No</td> | ||
<td class="govuk-table__cell ">Any extra HTML attributes (for example data attributes) to add to the error link anchor.</td> | ||
</tr> | ||
<tr class="govuk-table__row"> | ||
<th class="govuk-table__header" scope="row">classes</th> | ||
@@ -173,0 +185,0 @@ |
@@ -120,2 +120,26 @@ # Footer | ||
<th class="govuk-table__header" scope="row">meta.text</th> | ||
<td class="govuk-table__cell ">string</td> | ||
<td class="govuk-table__cell ">No</td> | ||
<td class="govuk-table__cell ">Text to add to the meta section of the footer, which will appear below any links specified using meta.items. If meta.html is specified, this option is ignored.</td> | ||
</tr> | ||
<tr class="govuk-table__row"> | ||
<th class="govuk-table__header" scope="row">meta.html</th> | ||
<td class="govuk-table__cell ">string</td> | ||
<td class="govuk-table__cell ">No</td> | ||
<td class="govuk-table__cell ">HTML to add to the meta section of the footer, which will appear below any links specified using meta.items. If you do not need to use HTML, use meta.text instead.</td> | ||
</tr> | ||
<tr class="govuk-table__row"> | ||
<th class="govuk-table__header" scope="row">meta.items</th> | ||
@@ -157,2 +181,14 @@ | ||
<th class="govuk-table__header" scope="row">meta.items.{}.attributes</th> | ||
<td class="govuk-table__cell ">object</td> | ||
<td class="govuk-table__cell ">No</td> | ||
<td class="govuk-table__cell ">Any extra HTML attributes (for example data attributes) to add to the anchor in the footer meta section.</td> | ||
</tr> | ||
<tr class="govuk-table__row"> | ||
<th class="govuk-table__header" scope="row">navigation</th> | ||
@@ -230,2 +266,14 @@ | ||
<th class="govuk-table__header" scope="row">navigation.items.{}.attributes</th> | ||
<td class="govuk-table__cell ">object</td> | ||
<td class="govuk-table__cell ">No</td> | ||
<td class="govuk-table__cell ">Any extra HTML attributes (for example data attributes) to add to the anchor in the footer navigation section.</td> | ||
</tr> | ||
<tr class="govuk-table__row"> | ||
<th class="govuk-table__header" scope="row">containerClasses</th> | ||
@@ -232,0 +280,0 @@ |
@@ -155,3 +155,3 @@ # Header | ||
<button role="button" class="govuk-header__menu-button js-header-toggle" aria-controls="navigation" aria-label="Show or hide Top Level Navigation">Menu</button> | ||
<button type="button" role="button" class="govuk-header__menu-button js-header-toggle" aria-controls="navigation" aria-label="Show or hide Top Level Navigation">Menu</button> | ||
<nav> | ||
@@ -261,3 +261,3 @@ <ul id="navigation" class="govuk-header__navigation " aria-label="Top Level Navigation"> | ||
<button role="button" class="govuk-header__menu-button js-header-toggle" aria-controls="navigation" aria-label="Show or hide Top Level Navigation">Menu</button> | ||
<button type="button" role="button" class="govuk-header__menu-button js-header-toggle" aria-controls="navigation" aria-label="Show or hide Top Level Navigation">Menu</button> | ||
<nav> | ||
@@ -478,2 +478,14 @@ <ul id="navigation" class="govuk-header__navigation " aria-label="Top Level Navigation"> | ||
<th class="govuk-table__header" scope="row">navigation.{}.attributes</th> | ||
<td class="govuk-table__cell ">object</td> | ||
<td class="govuk-table__cell ">No</td> | ||
<td class="govuk-table__cell ">Any extra HTML attributes (for example data attributes) to add to the navigation item anchor.</td> | ||
</tr> | ||
<tr class="govuk-table__row"> | ||
<th class="govuk-table__header" scope="row">navigationClasses</th> | ||
@@ -480,0 +492,0 @@ |
@@ -27,3 +27,3 @@ # Tabs | ||
<li class="govuk-tabs__list-item"> | ||
<a class="govuk-tabs__tab" href="#past-day"> | ||
<a class="govuk-tabs__tab govuk-tabs__tab--selected" href="#past-day"> | ||
Past day | ||
@@ -84,3 +84,3 @@ </a> | ||
<section class="govuk-tabs__panel" id="past-week"> | ||
<section class="govuk-tabs__panel govuk-tabs__panel--hidden" id="past-week"> | ||
<h2 class="govuk-heading-l">Past week</h2> | ||
@@ -116,3 +116,3 @@ <table class="govuk-table"> | ||
<section class="govuk-tabs__panel" id="past-month"> | ||
<section class="govuk-tabs__panel govuk-tabs__panel--hidden" id="past-month"> | ||
<h2 class="govuk-heading-l">Past month</h2> | ||
@@ -148,3 +148,3 @@ <table class="govuk-table"> | ||
<section class="govuk-tabs__panel" id="past-year"> | ||
<section class="govuk-tabs__panel govuk-tabs__panel--hidden" id="past-year"> | ||
<h2 class="govuk-heading-l">Past year</h2> | ||
@@ -293,3 +293,3 @@ <table class="govuk-table"> | ||
<td class="govuk-table__cell ">Any extra HTML attributes (for example data attributes) to add to the details element</td> | ||
<td class="govuk-table__cell ">Any extra HTML attributes (for example data attributes) to add to the tabs container</td> | ||
@@ -348,2 +348,14 @@ </tr> | ||
<th class="govuk-table__header" scope="row">items.{}.attributes</th> | ||
<td class="govuk-table__cell ">object</td> | ||
<td class="govuk-table__cell ">No</td> | ||
<td class="govuk-table__cell ">Any extra HTML attributes (for example data attributes) to add to the tab item anchor.</td> | ||
</tr> | ||
<tr class="govuk-table__row"> | ||
<th class="govuk-table__header" scope="row">items.{}.panel.text (or) items.{}.panel.html</th> | ||
@@ -359,2 +371,14 @@ | ||
<tr class="govuk-table__row"> | ||
<th class="govuk-table__header" scope="row">items.{}.panel.attributes</th> | ||
<td class="govuk-table__cell ">object</td> | ||
<td class="govuk-table__cell ">No</td> | ||
<td class="govuk-table__cell ">Any extra HTML attributes (for example data attributes) to add to the tab panel.</td> | ||
</tr> | ||
</tbody> | ||
@@ -361,0 +385,0 @@ |
@@ -1279,2 +1279,3 @@ (function (global, factory) { | ||
$tab.setAttribute('aria-selected', 'false'); | ||
$tab.classList.remove('govuk-tabs__tab--selected'); | ||
$tab.setAttribute('tabindex', '-1'); | ||
@@ -1285,2 +1286,3 @@ }; | ||
$tab.setAttribute('aria-selected', 'true'); | ||
$tab.classList.add('govuk-tabs__tab--selected'); | ||
$tab.setAttribute('tabindex', '0'); | ||
@@ -1290,3 +1292,3 @@ }; | ||
Tabs.prototype.getCurrentTab = function () { | ||
return this.$module.querySelector('[role=tab][aria-selected=true]') | ||
return this.$module.querySelector('.govuk-tabs__tab--selected') | ||
}; | ||
@@ -1293,0 +1295,0 @@ |
{ | ||
"name": "govuk-frontend", | ||
"description": "GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"main": "all.js", | ||
@@ -6,0 +6,0 @@ "sass": "all.scss", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1437856
237
9456