diff --git a/CHANGELOG.md b/CHANGELOG.md index ad122ff570..c6c803e039 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ * Remove left search variant of layout header ([PR #4239](https://github.com/alphagov/govuk_publishing_components/pull/4239)) * Remove 'inverse' background style from phase banner ([PR #4241](https://github.com/alphagov/govuk_publishing_components/pull/4241)) * Add experimental `search_with_autocomplete` component ([PR #4218](https://github.com/alphagov/govuk_publishing_components/pull/4218)) +* Remove breadcrumbs example from inverse_header docs ([PR #4244](https://github.com/alphagov/govuk_publishing_components/pull/4244)) ## 43.3.0 diff --git a/app/views/govuk_publishing_components/components/docs/inverse_header.yml b/app/views/govuk_publishing_components/components/docs/inverse_header.yml index 7569bfc962..4af6348354 100644 --- a/app/views/govuk_publishing_components/components/docs/inverse_header.yml +++ b/app/views/govuk_publishing_components/components/docs/inverse_header.yml @@ -1,17 +1,13 @@ name: Inverse header description: A wrapper to contain header content in white text body: | - This component can be passed a block of template code and will wrap it in a blue header. This is as light-touch as possible and doesn't attempt to deal with the margins and paddings of its content. White text is enforced on content and would need to be overridden where unwanted. Implemented to accommodate topic and list page headings and breadcrumbs but unopinionated about its contents. + This component can be passed a block of template code and will wrap it in a blue header. This is as light-touch as possible and doesn't attempt to deal with the margins and paddings of its content. White text is enforced on content and would need to be overridden where unwanted. Implemented to accommodate topic and list page headings but unopinionated about its contents. If passing links to the block make sure to add [the inverse modifier](https://design-system.service.gov.uk/styles/typography/#links-on-dark-backgrounds). - accessibility_criteria: | The component must: * be used in conjunction with content that renders a text contrast ratio higher than 4.5:1 against the header colour to meet WCAG AA. - -accessibility_excluded_rules: - - skip-link # Examples of this component contain breadcrumbs, creating a reference to #content which is part of the layout examples: default: data: @@ -45,31 +41,7 @@ examples: } %>

Published 22 April 2016

- with_breadcrumbs_and_paragraph: - data: - padding_top: false - block: | - - <%= render "govuk_publishing_components/components/breadcrumbs", { - collapse_on_mobile: true, - breadcrumbs: [ - { - title: "Section", - url: "/section" - }, - { - title: "Education of disadvantaged children", - url: "/section/sub-section" - } - ], - inverse: true - } %> - <%= render "govuk_publishing_components/components/lead_paragraph", { - text: "Schools and academies, further and higher education, apprenticeships and other skills training, student funding, early years.", - inverse: true - } %> - - with_link: + with_paragraph_and_link: data: block: |