Skip to content

Commit

Permalink
Remove redundant example and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Jani Kraner committed Feb 7, 2018
1 parent faecfed commit 78a769a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 33 deletions.
29 changes: 2 additions & 27 deletions src/components/phase-banner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ More information about when to use phase-banner can be found on [GOV.UK Design S
alpha
</strong>
<span class="govuk-c-phase-banner__text">
This is a new service your <a href="#" class="govuk-link">feedback</a> will help us to improve it.
This is a new service - your <a href="#" class="govuk-link">feedback</a> will help us to improve it.
</span>
</p>
</div>
Expand All @@ -32,32 +32,7 @@ More information about when to use phase-banner can be found on [GOV.UK Design S
"tag": {
"text": "alpha"
},
"html": "This is a new service – your <a href=\"#\" class=\"govuk-link\">feedback</a> will help us to improve it."
}) }}

### Phase-banner--tag-with-html

[Preview the phase-banner--tag-with-html example](http://govuk-frontend-review.herokuapp.com/components/phase-banner/tag-with-html/preview)

#### Markup

<div class="govuk-c-phase-banner">
<p class="govuk-c-phase-banner__content"><strong class="govuk-c-tag govuk-c-phase-banner__content__tag ">
<i>alpha</i>
</strong>
<span class="govuk-c-phase-banner__text">
This is a new service – your <a href="#" class="govuk-link">feedback</a> will help us to improve it.
</span>
</p>
</div>

#### Macro

{{ govukPhaseBanner({
"tag": {
"html": "<i>alpha</i>"
},
"html": "This is a new service – your <a href=\"#\" class=\"govuk-link\">feedback</a> will help us to improve it."
"html": "This is a new service - your <a href=\"#\" class=\"govuk-link\">feedback</a> will help us to improve it."
}) }}

## Dependencies
Expand Down
7 changes: 1 addition & 6 deletions src/components/phase-banner/phase-banner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,4 @@ examples:
data:
tag:
text: alpha
html: This is a new service – your <a href="#" class="govuk-link">feedback</a> will help us to improve it.
- name: tag-with-html
data:
tag:
html: <i>alpha</i>
html: This is a new service – your <a href="#" class="govuk-link">feedback</a> will help us to improve it.
html: This is a new service - your <a href="#" class="govuk-link">feedback</a> will help us to improve it.

0 comments on commit 78a769a

Please sign in to comment.