Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix focus style being overlapped by summary action links #3862

Merged
merged 1 commit into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ This change was introduced in [pull request #3773: Omit the value attribute from
We’ve made fixes to GOV.UK Frontend in the following pull requests:

- [#3791: Refactor mobile menu button label/text handling](https://github.com/alphagov/govuk-frontend/pull/3791)
- [#3862: Fix focus style being overlapped by summary action links](https://github.com/alphagov/govuk-frontend/pull/3862)

## 4.6.0 (Feature release)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,15 @@
}
}

// Large groups of action links may wrap onto multiple lines. Because the link
// focus styles are applied outside of the link's bounding box, there are
// situations where the focus style on a link can be overlapped by subsequent
// links. We don't want this, so let's create a new stacking context on focus
// so the link always appears to be 'on top'.
.govuk-summary-list__actions-list-item .govuk-link:focus {
isolation: isolate;
}

// No border on entire summary list
.govuk-summary-list--no-border {
.govuk-summary-list__row {
Expand Down