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

Add inset text component #709

Merged
merged 3 commits into from
May 23, 2018
Merged

Add inset text component #709

merged 3 commits into from
May 23, 2018

Conversation

timpaul
Copy link
Contributor

@timpaul timpaul commented May 22, 2018

Inset text exists in GOV.UK Elements. We had originally decided not to reimplement it in GOV.UK Frontend as it was unclear that it was meeting user needs. However, during private beta it's become clear that inset text is needed.

Trello card

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-709 May 22, 2018 10:30 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-709 May 22, 2018 13:34 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-709 May 22, 2018 13:36 Inactive
@alex-ju
Copy link
Contributor

alex-ju commented May 22, 2018

Update:

  • added component attributes
  • update readme
  • added tests

From a code perspective is ready for review.

@alex-ju alex-ju changed the title [DO NOT MERGE ] Add inset text component Add inset text component May 22, 2018
@@ -0,0 +1,60 @@
<script>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
Copy link

Choose a reason for hiding this comment

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

not sure we need this?

1. [GOV.UK Frontend](/)
2. Inset text

</div>
Copy link

Choose a reason for hiding this comment

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

or this

Copy link

Choose a reason for hiding this comment

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

actually none of the divs in the readme

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-709 May 22, 2018 15:06 Inactive
@alex-ju
Copy link
Contributor

alex-ju commented May 22, 2018

@igloosi: good spot. was using the old index.njk file.


{{ govukInsetText({
classes: '',
content: 'It can take up to 8 weeks <a href="#">to register</a> a lasting power of attorney if there are no mistakes in the application.'
Copy link

Choose a reason for hiding this comment

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

this is 'html' or 'text' right, not 'content'?

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-709 May 22, 2018 15:11 Inactive
@kr8n3r
Copy link

kr8n3r commented May 22, 2018

oh, changelog

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-709 May 22, 2018 15:58 Inactive
@NickColley NickColley changed the title Add inset text component [Do not merge] Add inset text component May 22, 2018
Copy link
Contributor

@NickColley NickColley left a comment

Choose a reason for hiding this comment

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

Spoke to Tim, we may rename this.

@kr8n3r
Copy link

kr8n3r commented May 22, 2018

📛 Call-out (text)

@alex-ju alex-ju changed the title [Do not merge] Add inset text component Add inset text component May 23, 2018
@alex-ju alex-ju dismissed NickColley’s stale review May 23, 2018 10:29

Name's been decided

@alex-ju alex-ju deleted the add-inset-text-component branch May 23, 2018 10:45
@alex-ju alex-ju mentioned this pull request May 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants