-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The CSS adjustment removed in #132c12f had the favourable side effect of limiting the width of the focus state for the three text items (heading, summary, show/hide), stopping the focus state from expanding beyond the text to the full width of the component. To limit the width of the focus state without the NVDA adjustment, this commit: - adds focus containers in the markup inside the three items using JavaScript - makes the focus containers inline items - moves the focus styles to those classes; the inline style sets the width of the focus state to the width of the text - renames `.govuk-accordion__section-heading-focus-wrapper` to `.govuk-accordion__section-heading-text` since the class no longer has the focus styles Change the text containers to set bottom margin instead of top margin as this: - resolves an issue with the summary line margin: since the summary line container is now a block level one, it renders the `.govuk-body` bottom margin; moving the margin to the bottom of the container makes the container margin collapse with the `.govuk-body` bottom margin - is more consistent with how rest of GOV.UK Frontend sets margins As the last text container inside the butotn now has a bottom margin, we also don’t need set the bottom margin on the button anymore.
- Loading branch information
1 parent
4a818c3
commit c6cd841
Showing
2 changed files
with
39 additions
and
18 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
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