lib/ccs/components/govuk/header.rb in ccs-frontend_helpers-0.2.0 vs lib/ccs/components/govuk/header.rb in ccs-frontend_helpers-0.3.0
- old
+ new
@@ -39,10 +39,9 @@
# @option options [Hash] :attributes additional attributes that will added as part of the header HTML
def initialize(navigation: nil, menu_button: nil, service: nil, **options)
super(**options)
- @options[:attributes][:role] = 'banner'
@options[:container_classes] ||= 'govuk-width-container'
@options[:homepage_url] ||= '/'
@options[:use_tudor_crown] = true if @options[:use_tudor_crown].nil?
@navigation = Navigation.new(navigation: navigation, menu_button: menu_button, context: @context) if navigation && navigation[:items].present?