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
4dfae4af
Commit
4dfae4af
authored
Aug 11, 2020
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace fa-close with GitLab close icon
parent
e4695080
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
11 deletions
+17
-11
app/assets/javascripts/filtered_search/filtered_search_visual_tokens.js
...ascripts/filtered_search/filtered_search_visual_tokens.js
+2
-2
app/assets/javascripts/sidebar/components/time_tracking/time_tracker.vue
...scripts/sidebar/components/time_tracking/time_tracker.vue
+3
-1
app/assets/stylesheets/fontawesome_custom.scss
app/assets/stylesheets/fontawesome_custom.scss
+0
-1
app/assets/stylesheets/framework/filters.scss
app/assets/stylesheets/framework/filters.scss
+4
-4
changelogs/unreleased/225946-replace-fa-close-with-gitlab-svg.yml
...gs/unreleased/225946-replace-fa-close-with-gitlab-svg.yml
+5
-0
spec/frontend/filtered_search/filtered_search_visual_tokens_spec.js
...end/filtered_search/filtered_search_visual_tokens_spec.js
+2
-2
spec/frontend/helpers/filtered_search_spec_helper.js
spec/frontend/helpers/filtered_search_spec_helper.js
+1
-1
No files found.
app/assets/javascripts/filtered_search/filtered_search_visual_tokens.js
View file @
4dfae4af
import
VisualTokenValue
from
'
./visual_token_value
'
;
import
{
objectToQueryString
}
from
'
~/lib/utils/common_utils
'
;
import
{
objectToQueryString
,
spriteIcon
}
from
'
~/lib/utils/common_utils
'
;
import
FilteredSearchContainer
from
'
./container
'
;
export
default
class
FilteredSearchVisualTokens
{
...
...
@@ -84,7 +84,7 @@ export default class FilteredSearchVisualTokens {
<div class="value-container">
<div class="
${
capitalizeTokenValue
?
'
text-capitalize
'
:
''
}
value"></div>
<div class="remove-token" role="button">
<i class="fa fa-close"></i>
${
spriteIcon
(
'
close
'
,
'
s16 close-icon
'
)}
</div>
</div>
</div>
...
...
app/assets/javascripts/sidebar/components/time_tracking/time_tracker.vue
View file @
4dfae4af
<
script
>
import
{
GlIcon
}
from
'
@gitlab/ui
'
;
import
TimeTrackingHelpState
from
'
./help_state.vue
'
;
import
TimeTrackingCollapsedState
from
'
./collapsed_state.vue
'
;
import
TimeTrackingSpentOnlyPane
from
'
./spent_only_pane.vue
'
;
...
...
@@ -11,6 +12,7 @@ import eventHub from '../../event_hub';
export
default
{
name
:
'
IssuableTimeTracker
'
,
components
:
{
GlIcon
,
TimeTrackingCollapsedState
,
TimeTrackingEstimateOnlyPane
,
TimeTrackingSpentOnlyPane
,
...
...
@@ -111,7 +113,7 @@ export default {
class=
"close-help-button float-right"
@
click=
"toggleHelpState(false)"
>
<
i
class=
"fa fa-close"
aria-hidden=
"true"
>
</i
>
<
gl-icon
name=
"close"
/
>
</div>
</div>
<div
class=
"time-tracking-content hide-collapsed"
>
...
...
app/assets/stylesheets/fontawesome_custom.scss
View file @
4dfae4af
...
...
@@ -93,7 +93,6 @@
}
.
fa-remove
:
:
before
,
.
fa-close
::
before
,
.
fa-times
::
before
{
content
:
'\f00d'
;
}
...
...
app/assets/stylesheets/framework/filters.scss
View file @
4dfae4af
...
...
@@ -134,20 +134,20 @@
padding-left
:
8px
;
padding-right
:
0
;
.
fa-close
{
.
close-icon
{
color
:
$gl-text-color-secondary
;
}
&
:hover
.
fa-close
{
&
:hover
.
close-icon
{
color
:
$gl-text-color
;
}
&
.inverted
{
.
fa-close
{
.
close-icon
{
color
:
$gl-text-color-secondary-inverted
;
}
&
:hover
.
fa-close
{
&
:hover
.
close-icon
{
color
:
$gl-text-color-inverted
;
}
}
...
...
changelogs/unreleased/225946-replace-fa-close-with-gitlab-svg.yml
0 → 100644
View file @
4dfae4af
---
title
:
Replace fa-close icons with GitLab SVG close icon
merge_request
:
38505
author
:
type
:
changed
spec/frontend/filtered_search/filtered_search_visual_tokens_spec.js
View file @
4dfae4af
...
...
@@ -280,8 +280,8 @@ describe('Filtered Search Visual Tokens', () => {
);
});
it
(
'
contains
fa-
close icon
'
,
()
=>
{
expect
(
tokenElement
.
querySelector
(
'
.remove-token .
fa-close
'
)).
toEqual
(
expect
.
anything
());
it
(
'
contains close icon
'
,
()
=>
{
expect
(
tokenElement
.
querySelector
(
'
.remove-token .
close-icon
'
)).
toEqual
(
expect
.
anything
());
});
});
});
...
...
spec/frontend/helpers/filtered_search_spec_helper.js
View file @
4dfae4af
...
...
@@ -15,7 +15,7 @@ export default class FilteredSearchSpecHelper {
<div class="value-container">
<div class="value">
${
value
}
</div>
<div class="remove-token" role="button">
<
i class="fa fa-close"></i
>
<
svg class="s16 close-icon"></svg
>
</div>
</div>
</div>
...
...
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