Skip to content

Commit

Permalink
Fix tab not being opened when macro options are linked to
Browse files Browse the repository at this point in the history
  • Loading branch information
querkmachine committed Jul 11, 2022
1 parent c7dbb1f commit 8b53583
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/javascripts/components/options-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@ var OptionsTable = {
var detailsText = optionsDetailsElement.querySelector('.govuk-details__text')

if (detailsSummary && detailsText) {
tabLink.setAttribute('aria-expanded', true)
tabLink.setAttribute('aria-expanded', 'true')
tabHeading.className += ' app-tabs__item--current'
tabsElement.classList.remove('app-tabs__container--hidden')
tabsElement.setAttribute('aria-hidden', false)
tabsElement.removeAttribute('hidden')

optionsDetailsElement.setAttribute('open', 'open')
detailsSummary.setAttribute('aria-expanded', true)
detailsText.setAttribute('aria-hidden', false)
detailsSummary.setAttribute('aria-expanded', 'true')
detailsText.style.display = ''
window.setTimeout(function () {
tabLink.focus()
Expand Down

0 comments on commit 8b53583

Please sign in to comment.