Skip to content

Commit

Permalink
Merge pull request #14863 from opf/fix/43520-search-bar-focus
Browse files Browse the repository at this point in the history
Fix #43520 Search bar doesn't have focus state and the first element on the list seams always selected
  • Loading branch information
HDinger committed Mar 8, 2024
2 parents 42f2d56 + 8e371de commit ab70d1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -59,6 +59,9 @@ $search-input-height: 30px
background: transparent
border-color: var(--header-item-font-color) !important

&:focus-within
@include spot-focus

.ng-arrow-wrapper
display: none

Expand Down Expand Up @@ -134,7 +137,7 @@ $search-input-height: 30px
&.ng-option-marked
background-color: var(--drop-down-hover-bg-color)
&.ng-option-selected
background-color: var(--drop-down-selected-bg-color)
background-color: unset

&--input
// Fix position of the spinner
Expand Down
1 change: 1 addition & 0 deletions spec/features/search/search_spec.rb
Expand Up @@ -251,6 +251,7 @@ def expect_range(param_a, param_b)
context 'when submitting without autocomplete' do
it 'loads the WP in full view' do
global_search.search "##{work_package.id}"
global_search.expect_work_package_marked(work_package)
global_search.submit_with_enter

wp_page = Pages::FullWorkPackage.new(work_package)
Expand Down

0 comments on commit ab70d1f

Please sign in to comment.