-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(button menu): Button menu updates (#825)
* feat(button menu): update the button menu to new specification This update removes the flexible buttion grouping functionality and makes the component solely responsible for making a toggle button menu BREAKING CHANGE: The component no longer handles being a button group, and it no longer responsively switches between a button group and a button menu * feat(button menu): wip - continued work on updated button menu * feat(button menu): wip - work on styles and interaction details * ci(husky): prevent husky failing on staging deploy * docs(updating documentation content): updating button menu documentation content * feat(button menu): final updates to button menu and adjust page header actions * feat(button menu): create examples for button menu * feat(button menu): remove menu and menuitem roles and switch to list This is not a real "menu" in accessibility terms, so the role is incorrect, and using menuitem on the items removes link/button semantics * feat(button menu): update tests for new structure and test js and data api * Changes to button menu guidance - Added example images - Updated 'help and feedback' partial - Reviewed heading levels * Updating example image Updating example image * feat(button menu): styling changes to improve accessibility * feat(button menu): refactor initMenu method * refactor(button menu): tidy up for code review * feat(button menu): updates to identity bar and page header actions * feat(button menu): changes from code review and add tests for single button instance * feat(button menu): update examples to use secondary button style, fix chevron alignment * Button menu updates - Updated "what's new" on homepage - Updated Get help and contribute section on button menu page - Updated example images - Reverted 'Suggest a change' box * docs(identity bar component updates): updates to the identity bar component based on the button menu * docs(updating documentation content): updating identity bar documentation * docs(updating documentation content): updating button menu documentation Adding link to GOV.UK Design System button group Changing multiple mention of default Changing Github content * feat(button menu): set default example to use button tags * docs(updating documentation content): updating button menu documentation Including content about WCAG failure for using component as menu * feat(button menu and date picker): update example images to png * feat(page header actions): update to use moj-button-group instead of button-menu * feat(button menu): update the nunjucks arguments documentation * fix(button menu): add in anchor link to button attributes within nunjucks arguments * fix(button menu): remove space to fix anchor link * docs(button menu): fix references to input in items text and html docs * docs(button menu): remove unnecessary govuk button include in default example * docs(button menu): final few tweaks * docs(button menu): minor content changes * docs(identity bar): update relative links in page * fix(button menu): fix button spacings on very small screens --------- Co-authored-by: Rob McCarthy <[email protected]> Co-authored-by: murrlipp <[email protected]> Co-authored-by: helennickols <[email protected]>
- Loading branch information
1 parent
5f924eb
commit d989f2d
Showing
48 changed files
with
13,696 additions
and
9,672 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,53 @@ | ||
<!doctype html> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<meta name="theme-color" content="#0b0c0c"> | ||
|
||
<link rel="shortcut icon" href="{{ '/assets/images/favicon.ico' | url }}" type="image/x-icon"> | ||
<link rel="apple-touch-icon" href="{{ '/assets/images/moj-apple-touch-icon-180x180.png' | url }}" sizes="180x180"> | ||
<link rel="apple-touch-icon" href="{{ '/assets/images/moj-apple-touch-icon-167x167.png' | url }}" sizes="167x167"> | ||
<link rel="apple-touch-icon" href="{{ '/assets/images/moj-apple-touch-icon-152x152.png' | url }}" sizes="152x152"> | ||
<link rel="apple-touch-icon" href="{{ '/assets/images/moj-apple-touch-icon.png' | url }}"> | ||
|
||
<meta name="description" content="Design your service using MoJ styles, components and patterns"> | ||
<meta property="og:image" content="{{ '/assets/images/moj-opengraph-image.png' | url }}"> | ||
|
||
<link href="{{ '/assets/stylesheets/application.css' | url }}" rel="stylesheet"> | ||
<title>{% block title %}{{ title }} - MoJ Design System{% endblock %}</title> | ||
|
||
<script type="module" src="https://www.googletagmanager.com/gtag/js?id=G-VTGX4YLSVL" async></script> | ||
<script type="module" src="{{ '/assets/javascript/jquery.js' | url }}"></script> | ||
<script type="module" src="{{ '/assets/javascript/all.js' | url }}"></script> | ||
</head> | ||
<body class="govuk-template__body"> | ||
<script>document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' govuk-frontend-supported' : '');</script> | ||
|
||
{% block body %} | ||
<div> | ||
{% include "./partials/header.njk" %} | ||
|
||
{% include "./partials/navigation.njk" %} | ||
|
||
{% block content %} | ||
<main class="app-prose-scope" role="main"> | ||
{{ content | safe }} | ||
</main> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="theme-color" content="#0b0c0c"> | ||
<link rel="shortcut icon" | ||
href="{{ '/assets/images/favicon.ico' | url }}" | ||
type="image/x-icon"> | ||
<link rel="apple-touch-icon" | ||
href="{{ '/assets/images/moj-apple-touch-icon-180x180.png' | url }}" | ||
sizes="180x180"> | ||
<link rel="apple-touch-icon" | ||
href="{{ '/assets/images/moj-apple-touch-icon-167x167.png' | url }}" | ||
sizes="167x167"> | ||
<link rel="apple-touch-icon" | ||
href="{{ '/assets/images/moj-apple-touch-icon-152x152.png' | url }}" | ||
sizes="152x152"> | ||
<link rel="apple-touch-icon" | ||
href="{{ '/assets/images/moj-apple-touch-icon.png' | url }}"> | ||
<meta name="description" | ||
content="Design your service using MoJ styles, components and patterns"> | ||
<meta property="og:image" | ||
content="{{ '/assets/images/moj-opengraph-image.png' | url }}"> | ||
<link href="{{ '/assets/stylesheets/application.css' | url }}" | ||
rel="stylesheet"> | ||
{% block pageStyles %}{% endblock %} | ||
<title> | ||
{% block title %}{{ title }} - MoJ Design System{% endblock %} | ||
</title> | ||
<script type="module" | ||
src="https://www.googletagmanager.com/gtag/js?id=G-VTGX4YLSVL" | ||
async></script> | ||
<script type="module" src="{{ '/assets/javascript/jquery.js' | url }}"></script> | ||
<script type="module" src="{{ '/assets/javascript/all.js' | url }}"></script> | ||
</head> | ||
<body class="govuk-template__body"> | ||
<script>document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' govuk-frontend-supported' : '');</script> | ||
{% block body %} | ||
<div> | ||
{% include "./partials/header.njk" %} | ||
{% include "./partials/navigation.njk" %} | ||
{% block content %} | ||
<main class="app-prose-scope" role="main"> | ||
{{ content | safe }} | ||
</main> | ||
{% endblock %} | ||
{% include "./partials/footer.njk" %} | ||
</div> | ||
{% endblock %} | ||
|
||
{% include "./partials/footer.njk" %} | ||
|
||
</div> | ||
{% endblock %} | ||
{% block pageScripts %}{% endblock %} | ||
</body> | ||
{% block pageScripts %}{% endblock %} | ||
</body> | ||
</html> |
Oops, something went wrong.