Skip to content

Commit

Permalink
Remove deprecated govuk-button--disabled
Browse files Browse the repository at this point in the history
See alphagov/govuk-frontend#2271

The only place where this is used is the download button for the provisional
assessment by date report on the MI page. The button is (and was) only
appearing as disabled but could still be pressed as it is a link and not a
button.
  • Loading branch information
jrmhaig committed Feb 28, 2024
1 parent 004080a commit 7cba765
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/govuk_component/button_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ def govuk_link_button_warning(name = nil, options = nil, tag_options = {}, &)
def disable_if(options)
return unless options[:disabled].present? && options[:disabled].to_s == 'true'
options[:aria] = { disabled: 'true' }
prepend_classes('govuk-button--disabled', options)
end

def govuk_link_button_options(options)
Expand Down

0 comments on commit 7cba765

Please sign in to comment.