Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f6c149ea
Commit
f6c149ea
authored
Mar 22, 2021
by
Roman Kuba
Committed by
Enrique Alcántara
Mar 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change highlight color for higher contrast
in in-page search settings feature
parent
f933d954
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/search_settings/constants.js
app/assets/javascripts/search_settings/constants.js
+1
-1
spec/support/shared_examples/features/search_settings_shared_examples.rb
...ared_examples/features/search_settings_shared_examples.rb
+1
-1
No files found.
app/assets/javascripts/search_settings/constants.js
View file @
f6c149ea
...
@@ -5,7 +5,7 @@ export const EXCLUDED_NODES = ['OPTION'];
...
@@ -5,7 +5,7 @@ export const EXCLUDED_NODES = ['OPTION'];
export
const
HIDE_CLASS
=
'
gl-display-none
'
;
export
const
HIDE_CLASS
=
'
gl-display-none
'
;
// used to highlight the text that matches the * search term
// used to highlight the text that matches the * search term
export
const
HIGHLIGHT_CLASS
=
'
gl-bg-orange-
5
0
'
;
export
const
HIGHLIGHT_CLASS
=
'
gl-bg-orange-
10
0
'
;
// How many seconds to wait until the user * stops typing
// How many seconds to wait until the user * stops typing
export
const
TYPING_DELAY
=
400
;
export
const
TYPING_DELAY
=
400
;
spec/support/shared_examples/features/search_settings_shared_examples.rb
View file @
f6c149ea
...
@@ -25,7 +25,7 @@ RSpec.shared_examples 'can highlight results' do |search_term|
...
@@ -25,7 +25,7 @@ RSpec.shared_examples 'can highlight results' do |search_term|
end
end
it
'highlights the search terms'
do
it
'highlights the search terms'
do
selector
=
'.gl-bg-orange-
5
0'
selector
=
'.gl-bg-orange-
10
0'
fill_in
SearchHelpers
::
INPUT_PLACEHOLDER
,
with:
search_term
fill_in
SearchHelpers
::
INPUT_PLACEHOLDER
,
with:
search_term
expect
(
page
).
to
have_css
(
selector
)
expect
(
page
).
to
have_css
(
selector
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment