diff --git a/app/components/DS/button.html.erb b/app/components/DS/button.html.erb index 0b69c4649..557db0bd9 100644 --- a/app/components/DS/button.html.erb +++ b/app/components/DS/button.html.erb @@ -4,7 +4,7 @@ <% end %> <% unless icon_only? %> - <%= text %> + <%= text %> <% end %> <% if icon && icon_position == :right %> diff --git a/app/views/category/deletions/new.html.erb b/app/views/category/deletions/new.html.erb index 72041a4e7..cf06b137d 100644 --- a/app/views/category/deletions/new.html.erb +++ b/app/views/category/deletions/new.html.erb @@ -1,4 +1,4 @@ -<%= render DS::Dialog.new(scrollable: false) do |dialog| %> +<%= render DS::Dialog.new do |dialog| %> <% dialog.with_header(title: t(".delete_category"), subtitle: t(".explanation", category_name: @category.name)) %> <% dialog.with_body do %> diff --git a/test/controllers/category/deletions_controller_test.rb b/test/controllers/category/deletions_controller_test.rb index 8dbe5c3bc..695bc2e88 100644 --- a/test/controllers/category/deletions_controller_test.rb +++ b/test/controllers/category/deletions_controller_test.rb @@ -13,8 +13,7 @@ class Category::DeletionsControllerTest < ActionDispatch::IntegrationTest get new_category_deletion_url(@category) assert_response :success assert_select "turbo-frame#modal" - assert_select "turbo-frame#modal dialog > div > div > div.grow.py-4.space-y-4.flex.flex-col", count: 1 - assert_select "turbo-frame#modal dialog > div > div > div.overflow-auto", count: 0 + assert_select "turbo-frame#modal button span.min-w-0.truncate", text: /Delete "Food & Drink" and leave uncategorized/ end test "create with replacement" do