diff options
Diffstat (limited to 'lib/sidebars/search/panel.rb')
-rw-r--r-- | lib/sidebars/search/panel.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/sidebars/search/panel.rb b/lib/sidebars/search/panel.rb new file mode 100644 index 00000000000..d606dc388b5 --- /dev/null +++ b/lib/sidebars/search/panel.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +module Sidebars + module Search + class Panel < ::Sidebars::Panel + override :aria_label + def aria_label + _('Search') + end + + override :super_sidebar_context_header + def super_sidebar_context_header + @super_sidebar_context_header ||= { + title: aria_label, + icon: 'search' + } + end + end + end +end |