diff --git a/app/components/header/projects/filterable_tree_view_component.html.erb b/app/components/header/projects/filterable_tree_view_component.html.erb index aa484ff9959..72decb91c72 100644 --- a/app/components/header/projects/filterable_tree_view_component.html.erb +++ b/app/components/header/projects/filterable_tree_view_component.html.erb @@ -33,10 +33,7 @@ See COPYRIGHT and LICENSE files for more details. src: tree_src, include_sub_items_check_box_arguments: { hidden: true }, filter_mode_control_arguments: logged? ? {} : { hidden: true }, - filter_input_arguments: { name: "filter", - label: t(:label_filter), - visually_hide_label: true, - autofocus: true, + filter_input_arguments: { autofocus: true, data: { test_selector: "op-header-project-select--search" } }, no_results_node_arguments: { data: { test_selector: "op-header-project-select--no-results" }, label: I18n.t("filterable_tree_view.no_results_text") } diff --git a/modules/wikis/app/forms/wikis/create_new_wiki_page_form.rb b/modules/wikis/app/forms/wikis/create_new_wiki_page_form.rb index e0f2791a84f..de117107c14 100644 --- a/modules/wikis/app/forms/wikis/create_new_wiki_page_form.rb +++ b/modules/wikis/app/forms/wikis/create_new_wiki_page_form.rb @@ -52,14 +52,6 @@ module Wikis filter_mode_control_arguments: { hidden: true }, filter_input_arguments: { placeholder: I18n.t("wikis.link_existing_wiki_page_form.placeholder"), - # every other property is just refilling the default values, - # as those are not merged into custom arguments - name: :filter, - label: I18n.t(:button_filter), - type: :search, - leading_visual: { icon: :search }, - visually_hide_label: true, - show_clear_button: true }, include_sub_items_check_box_arguments: { hidden: true }, no_results_node_arguments: { label: I18n.t("wikis.link_existing_wiki_page_form.no_results") } diff --git a/modules/wikis/app/forms/wikis/link_existing_wiki_page_form.rb b/modules/wikis/app/forms/wikis/link_existing_wiki_page_form.rb index acb68eaf236..7b9d7a85891 100644 --- a/modules/wikis/app/forms/wikis/link_existing_wiki_page_form.rb +++ b/modules/wikis/app/forms/wikis/link_existing_wiki_page_form.rb @@ -43,14 +43,6 @@ module Wikis filter_mode_control_arguments: { hidden: true }, filter_input_arguments: { placeholder: I18n.t("wikis.link_existing_wiki_page_form.placeholder"), - # every other property is just refilling the default values, - # as those are not merged into custom arguments - name: :filter, - label: I18n.t(:button_filter), - type: :search, - leading_visual: { icon: :search }, - visually_hide_label: true, - show_clear_button: true }, include_sub_items_check_box_arguments: { hidden: true }, no_results_node_arguments: { label: I18n.t("wikis.link_existing_wiki_page_form.no_results") }