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

Document how to add an attribute to template <body> #1071

Merged
merged 2 commits into from
Nov 19, 2019

Conversation

hannalaakso
Copy link
Member

@hannalaakso hannalaakso commented Oct 29, 2019

Blocked until alphagov/govuk-frontend#1623 is released

@govuk-design-system-ci
Copy link
Collaborator

govuk-design-system-ci commented Oct 29, 2019

You can preview this change here:

Built with commit 8b4f26c

https://deploy-preview-1071--govuk-design-system-preview.netlify.com

Copy link
Contributor

@m-green m-green left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of minor suggestions from me.

@@ -117,6 +117,11 @@ Variables can be set with:
<td class="govuk-table__cell">Add a class to the <code>&lt;body&gt;</code> element.</td>
</tr>

<tr class="govuk-table__row">
<td class="govuk-table__cell">bodyAttributes</td>
<td class="govuk-table__cell">Add an attribute to the <code>&lt;body&gt;</code> element.</td>
Copy link
Contributor

@m-green m-green Oct 29, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of changes suggested, because:

  • "an attribute" didn't seem accurate because you can add more than one
  • I think it's worth clarifying how to add each attribute, because bodyAttribute uses key-value pairs rather than a single value.
Suggested change
<td class="govuk-table__cell">Add an attribute to the <code>&lt;body&gt;</code> element.</td>
<td class="govuk-table__cell">Add attributes to the <code>&lt;body&gt;</code> element. Add each attribute and its value as a key value pair in the `bodyAttributes` object.</td>

Copy link
Contributor

@m-green m-green left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've committed the tweaks from discussion and 2i - all good with me now :)

@hannalaakso
Copy link
Member Author

Thanks @m-green 👍 Just need to wait for alphagov/govuk-frontend#1623 to be released and then this can be merged.

@36degrees 36degrees removed the blocked label Nov 19, 2019
@hannalaakso hannalaakso merged commit 0c9c7fc into master Nov 19, 2019
Design System Sprint Board automation moved this from Needs review to Done Nov 19, 2019
@hannalaakso hannalaakso deleted the document-template-body-attributes branch November 19, 2019 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants