Skip to content

Commit

Permalink
Add support for inverse buttons
Browse files Browse the repository at this point in the history
Inverse buttons were added to govuk-frontend in PR #3556

alphagov/govuk-frontend#3556
  • Loading branch information
peteryates committed May 23, 2023
1 parent 3caf3f8 commit f13e520
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/helpers/govuk_link_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module GovukLinkHelper
disabled: "govuk-button--disabled",
secondary: "govuk-button--secondary",
warning: "govuk-button--warning",
inverse: "govuk-button--inverse",
}.freeze

def govuk_link_classes(*styles, default_class: 'govuk-link')
Expand Down
1 change: 1 addition & 0 deletions spec/helpers/govuk_link_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
secondary: 'govuk-button--secondary',
warning: 'govuk-button--warning',
disabled: 'govuk-button--disabled',
inverse: 'govuk-button--inverse',
}.each do |style, css_class|
describe "generating a #{style}-style button with '#{style}: true'" do
let(:args) { [style] }
Expand Down

0 comments on commit f13e520

Please sign in to comment.