-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove option to pass a link for the non-title text as not currently needed - rename options to just title and text, simpler - remove show banner option, use existence of title as basis for displaying banner - make banner appear in component guide - write some rspec tests
- Loading branch information
1 parent
2583ebb
commit f1bd381
Showing
3 changed files
with
44 additions
and
32 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
15 changes: 13 additions & 2 deletions
15
app/views/govuk_publishing_components/components/docs/global_bar.yml
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,10 +1,21 @@ | ||
name: Global banner | ||
description: A site-wide banner used to convey important information | ||
body: | | ||
See the [opsmanual](https://docs.publishing.service.gov.uk/apps/static/global-banner.html) for information about what the Global banner is and when it should be activated. | ||
The [dev docs](https://docs.publishing.service.gov.uk/manual/global-banner.html) contains information about this component and when it should be used. | ||
accessibility_criteria: | | ||
The link must: | ||
* be keyboard focusable | ||
examples: | ||
default: {} | ||
default: | ||
data: | ||
title: Bring photo ID to vote | ||
with_a_link: | ||
data: | ||
title: Bring photo ID to vote | ||
title_href: "https://www.gov.uk" | ||
with_a_link_and_text: | ||
data: | ||
title: Bring photo ID to vote | ||
title_href: "https://www.gov.uk" | ||
text: Check what photo ID you'll need to vote in person in the General Election on 4 July. |
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