Skip to content

Commit

Permalink
Ensure service nav works with custom branding
Browse files Browse the repository at this point in the history
  • Loading branch information
peteryates committed Sep 5, 2024
1 parent 8ab746d commit a31e241
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/govuk/components/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def reset!
# 'GovukComponent::PanelComponent' => 'another-brand',
# 'GovukComponent::PhaseBannerComponent' => 'another-brand',
# 'GovukComponent::SectionBreakComponent' => 'another-brand',
# 'GovukComponent::ServiceNavigationComponent' => 'another-brand',
# 'GovukComponent::StartButtonComponent' => 'another-brand',
# 'GovukComponent::SummaryListComponent' => 'another-brand',
# 'GovukComponent::TableComponent' => 'another-brand',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
it_behaves_like 'a component that accepts custom classes'
it_behaves_like 'a component that accepts custom HTML attributes'
it_behaves_like 'a component that supports custom branding'
it_behaves_like 'a component that supports brand overrides'

specify 'renders a div with the expected attributes' do
expect(rendered_content).to have_tag("div", with: { class: component_css_class, 'data-module' => 'govuk-service-navigation' })
Expand Down

0 comments on commit a31e241

Please sign in to comment.