Skip to content

Commit

Permalink
Merge pull request #9639 from alphagov/content-modelling/fix-homepage…
Browse files Browse the repository at this point in the history
…-layout

Fix Homepage layout
  • Loading branch information
pezholio authored Nov 21, 2024
2 parents bf51825 + de93ba5 commit bf2662e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {}
dd.append(this.copyLink)

this.module.append(dd)
this.module.classList.remove('govuk-summary-list__row--no-actions')
}

CopyEmbedCode.prototype.createLink = function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ describe('GOVUK.Modules.CopyEmbedCode', function () {
expect(copyLink.textContent).toBe('Copy code')
})

it('should remove the .govuk-summary-list__row--no-actions class', function () {
expect(fixture.classList).not.toContain(
'govuk-summary-list__row--no-actions'
)
})

it('should create and populate a textarea', function () {
window.GOVUK.triggerEvent(copyLink, 'click')

Expand Down

0 comments on commit bf2662e

Please sign in to comment.