Skip to content

Commit

Permalink
Update active class for header component so it applies styling correc…
Browse files Browse the repository at this point in the history
…tly (#1259)
  • Loading branch information
martikat authored Jul 11, 2024
1 parent 276bc90 commit 8239f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/header_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def container_html_attributes

class ActionLinkItem < GovukComponent::HeaderComponent::NavigationItem
def active_class
['dfe-header__action-item--active'] if active?
['dfe-header__action-item--current'] if active?
end

def call
Expand All @@ -43,7 +43,7 @@ def call

class NavigationItem < GovukComponent::HeaderComponent::NavigationItem
def active_class
['dfe-header__navigation-item--active'] if active?
['dfe-header__navigation-item--current'] if active?
end

def call
Expand Down

0 comments on commit 8239f5d

Please sign in to comment.