Commit 1683ea48 authored by Miguel Rincon's avatar Miguel Rincon

Merge branch '225945-replace-fa-clock-icons-with-gitlab-svg-clock-icon' into 'master'

Replace fa-clock icons with GitLab SVG clock icon

See merge request gitlab-org/gitlab!37123
parents 642cbe7b 29ca04e5
...@@ -319,7 +319,7 @@ export default { ...@@ -319,7 +319,7 @@ export default {
:href="milestoneLink" :href="milestoneLink"
:title="milestoneTooltipText" :title="milestoneTooltipText"
> >
<i class="fa fa-clock-o"></i> <gl-icon name="clock" class="s16 gl-vertical-align-text-bottom" />
{{ issuable.milestone.title }} {{ issuable.milestone.title }}
</gl-link> </gl-link>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
%span.issuable-milestone.d-none.d-sm-inline-block %span.issuable-milestone.d-none.d-sm-inline-block
&nbsp; &nbsp;
= link_to project_issues_path(issue.project, milestone_title: issue.milestone.title), data: { html: 'true', toggle: 'tooltip', title: milestone_tooltip_due_date(issue.milestone) } do = link_to project_issues_path(issue.project, milestone_title: issue.milestone.title), data: { html: 'true', toggle: 'tooltip', title: milestone_tooltip_due_date(issue.milestone) } do
= icon('clock-o') = sprite_icon('clock', size: 16, css_class: 'gl-vertical-align-text-bottom')
= issue.milestone.title = issue.milestone.title
- if issue.due_date - if issue.due_date
%span.issuable-due-date.d-none.d-sm-inline-block.has-tooltip{ class: "#{'cred' if issue.overdue?}", title: _('Due date') } %span.issuable-due-date.d-none.d-sm-inline-block.has-tooltip{ class: "#{'cred' if issue.overdue?}", title: _('Due date') }
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
%span.issuable-milestone.d-none.d-sm-inline-block %span.issuable-milestone.d-none.d-sm-inline-block
&nbsp; &nbsp;
= link_to project_merge_requests_path(merge_request.project, milestone_title: merge_request.milestone.title), data: { html: 'true', toggle: 'tooltip', title: milestone_tooltip_due_date(merge_request.milestone) } do = link_to project_merge_requests_path(merge_request.project, milestone_title: merge_request.milestone.title), data: { html: 'true', toggle: 'tooltip', title: milestone_tooltip_due_date(merge_request.milestone) } do
= icon('clock-o') = sprite_icon('clock', size: 16, css_class: 'gl-vertical-align-text-bottom')
= merge_request.milestone.title = merge_request.milestone.title
- if merge_request.target_project.default_branch != merge_request.target_branch - if merge_request.target_project.default_branch != merge_request.target_branch
%span.project-ref-path.has-tooltip{ title: _('Target branch') } %span.project-ref-path.has-tooltip{ title: _('Target branch') }
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
.info-well .info-well
.well-segment.pipeline-info .well-segment.pipeline-info
.icon-container .icon-container.gl-vertical-align-text-bottom
= icon('clock-o') = sprite_icon('clock', size: 16)
= pluralize @pipeline.total_size, "job" = pluralize @pipeline.total_size, "job"
= @pipeline.ref_text = @pipeline.ref_text
- if @pipeline.duration - if @pipeline.duration
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
- milestone = issuable_sidebar[:milestone] || {} - milestone = issuable_sidebar[:milestone] || {}
.block.milestone{ data: { qa_selector: 'milestone_block' } } .block.milestone{ data: { qa_selector: 'milestone_block' } }
.sidebar-collapsed-icon.has-tooltip{ title: sidebar_milestone_tooltip_label(milestone), data: { container: 'body', html: 'true', placement: 'left', boundary: 'viewport' } } .sidebar-collapsed-icon.has-tooltip{ title: sidebar_milestone_tooltip_label(milestone), data: { container: 'body', html: 'true', placement: 'left', boundary: 'viewport' } }
= icon('clock-o', 'aria-hidden': 'true') = sprite_icon('clock', size: 16)
%span.milestone-title.collapse-truncated-title %span.milestone-title.collapse-truncated-title
- if milestone.present? - if milestone.present?
= milestone[:title] = milestone[:title]
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
- @events.sort_by(&:created_at).each do |event| - @events.sort_by(&:created_at).each do |event|
%li %li
%span.light %span.light
%i.fa.fa-clock-o = sprite_icon('clock', size: 16, css_class: 'gl-vertical-align-text-bottom')
= event.created_at.to_time.in_time_zone.strftime('%-I:%M%P') = event.created_at.to_time.in_time_zone.strftime('%-I:%M%P')
- if event.visible_to_user?(current_user) - if event.visible_to_user?(current_user)
- if event.push_action? - if event.push_action?
......
---
title: Replace FontAwesome fa-clock icon with SVG icon
merge_request: 37123
author:
type: performance
...@@ -76,8 +76,9 @@ describe('Issuable component', () => { ...@@ -76,8 +76,9 @@ describe('Issuable component', () => {
}); });
const checkExists = findFn => () => findFn().exists(); const checkExists = findFn => () => findFn().exists();
const hasConfidentialIcon = () => const hasIcon = (iconName, iconWrapper = wrapper) =>
wrapper.findAll(GlIcon).wrappers.some(iconWrapper => iconWrapper.props('name') === 'eye-slash'); iconWrapper.findAll(GlIcon).wrappers.some(icon => icon.props('name') === iconName);
const hasConfidentialIcon = () => hasIcon('eye-slash');
const findTaskStatus = () => wrapper.find('.task-status'); const findTaskStatus = () => wrapper.find('.task-status');
const findOpenedAgoContainer = () => wrapper.find('[data-testid="openedByMessage"]'); const findOpenedAgoContainer = () => wrapper.find('[data-testid="openedByMessage"]');
const findAuthor = () => wrapper.find({ ref: 'openedAgoByContainer' }); const findAuthor = () => wrapper.find({ ref: 'openedAgoByContainer' });
...@@ -288,11 +289,7 @@ describe('Issuable component', () => { ...@@ -288,11 +289,7 @@ describe('Issuable component', () => {
it('renders milestone', () => { it('renders milestone', () => {
expect(findMilestone().exists()).toBe(true); expect(findMilestone().exists()).toBe(true);
expect( expect(hasIcon('clock', findMilestone())).toBe(true);
findMilestone()
.find('.fa-clock-o')
.exists(),
).toBe(true);
expect(findMilestone().text()).toEqual(TEST_MILESTONE.title); expect(findMilestone().text()).toEqual(TEST_MILESTONE.title);
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment