-
Notifications
You must be signed in to change notification settings - Fork 336
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
Update tab focus state #1496
Update tab focus state #1496
Changes from all commits
efa462d
2e3de45
d7f5599
c950b78
6bc1554
988d062
ece6fa9
50218c7
2a2205d
91f4f66
724dc5c
de51a68
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -207,6 +207,22 @@ If there are links back to radios or checkboxes components in your error summary | |||||
|
||||||
[Pull request #1426: Make radios and checkboxes components easier to link to from error summary](https://github.com/alphagov/govuk-frontend/pull/1426) | ||||||
|
||||||
### Update the markup for tabs | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would this heading still be correct?
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or 'Update tab classes' There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sort of… the class has also moved onto another element which makes it slightly more than just updating classes? 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah yes, good point. How about just 'Update tabs'? Or stick with the original - this one's definitely not a dealbreaker. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In which case I think I'll leave it as-is 👍 |
||||||
|
||||||
You do not need to do anything if you're using the Nunjucks macros. | ||||||
|
||||||
If you are not using the Nunjucks macros, remove the `govuk-tabs__tab--selected` class from the first tab's link, then add the `govuk-tabs__list-item--selected` class to the link's parent list item. | ||||||
|
||||||
```html | ||||||
<li class="govuk-tabs__list-item govuk-tabs__list-item--selected"> | ||||||
<a class="govuk-tabs__tab" href="#tab1"> | ||||||
Tab 1 | ||||||
</a> | ||||||
</li> | ||||||
``` | ||||||
|
||||||
[Pull request #1496: Update the focus state for tabs](https://github.com/alphagov/govuk-frontend/pull/1443) | ||||||
|
||||||
### Update start button icon | ||||||
|
||||||
[Start buttons](https://design-system.service.gov.uk/components/button/#start-buttons) have a new icon. Your start buttons will lose their current icons unless you replace the old icon with the new one. | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. @m-green what do you think?