Commit 5bfc7a57 authored by Sarah Groff Hennigh-Palermo's avatar Sarah Groff Hennigh-Palermo

Merge branch '225932-replace-fa-arrow-icons-with-gitlab-svg-arrow-icons' into 'master'

Replace fa-arrow-* with GitLab SVG icons

Closes #225932

See merge request gitlab-org/gitlab!41158
parents a6cfa53e 76b2097f
<script> <script>
import { GlTooltipDirective } from '@gitlab/ui'; import { GlButton, GlTooltipDirective } from '@gitlab/ui';
import { __ } from '~/locale'; import { __ } from '~/locale';
export default { export default {
components: {
GlButton,
},
directives: { directives: {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
}, },
...@@ -26,13 +29,12 @@ export default { ...@@ -26,13 +29,12 @@ export default {
<template> <template>
<div class="dropdown-page-two dropdown-new-label"> <div class="dropdown-page-two dropdown-new-label">
<div class="dropdown-title"> <div class="dropdown-title">
<button <gl-button
:aria-label="__('Go back')" :aria-label="__('Go back')"
type="button" category="tertiary"
class="dropdown-title-button dropdown-menu-back" class="dropdown-title-button dropdown-menu-back"
> icon="arrow-left"
<i aria-hidden="true" class="fa fa-arrow-left" data-hidden="true"> </i> />
</button>
{{ headerTitle }} {{ headerTitle }}
<button <button
:aria-label="__('Close')" :aria-label="__('Close')"
......
...@@ -134,10 +134,6 @@ ...@@ -134,10 +134,6 @@
content: '\f100'; content: '\f100';
} }
.fa-arrow-left::before {
content: '\f060';
}
.fa-trash-o::before { .fa-trash-o::before {
content: '\f014'; content: '\f014';
} }
...@@ -166,10 +162,6 @@ ...@@ -166,10 +162,6 @@
content: '\f0c6'; content: '\f0c6';
} }
.fa-arrow-up::before {
content: '\f062';
}
.fa-bug::before { .fa-bug::before {
content: '\f188'; content: '\f188';
} }
...@@ -186,10 +178,6 @@ ...@@ -186,10 +178,6 @@
content: '\f0f3'; content: '\f0f3';
} }
.fa-arrow-down::before {
content: '\f063';
}
.fa-bitbucket-square::before { .fa-bitbucket-square::before {
content: '\f172'; content: '\f172';
} }
...@@ -242,10 +230,6 @@ ...@@ -242,10 +230,6 @@
content: '\f04b'; content: '\f04b';
} }
.fa-arrow-right::before {
content: '\f061';
}
.fa-search-plus::before { .fa-search-plus::before {
content: '\f00e'; content: '\f00e';
} }
......
...@@ -600,7 +600,6 @@ ...@@ -600,7 +600,6 @@
top: 0; top: 0;
padding: 0; padding: 0;
color: $dropdown-title-btn-color; color: $dropdown-title-btn-color;
font-size: 14px;
border: 0; border: 0;
background: none; background: none;
outline: 0; outline: 0;
...@@ -611,7 +610,7 @@ ...@@ -611,7 +610,7 @@
} }
.dropdown-menu-close { .dropdown-menu-close {
top: $gl-padding-4; top: $gl-padding-6;
right: $gl-padding-8; right: $gl-padding-8;
width: 20px; width: 20px;
height: 20px; height: 20px;
...@@ -622,8 +621,8 @@ ...@@ -622,8 +621,8 @@
} }
.dropdown-menu-back { .dropdown-menu-back {
left: 7px; left: 10px;
top: 2px; top: $gl-padding-8;
} }
.dropdown-input { .dropdown-input {
......
...@@ -67,7 +67,7 @@ module DropdownsHelper ...@@ -67,7 +67,7 @@ module DropdownsHelper
if options.fetch(:back, false) if options.fetch(:back, false)
title_output << content_tag(:button, class: "dropdown-title-button dropdown-menu-back", aria: { label: "Go back" }, type: "button") do title_output << content_tag(:button, class: "dropdown-title-button dropdown-menu-back", aria: { label: "Go back" }, type: "button") do
icon('arrow-left') sprite_icon('arrow-left')
end end
end end
...@@ -75,7 +75,7 @@ module DropdownsHelper ...@@ -75,7 +75,7 @@ module DropdownsHelper
if options.fetch(:close, true) if options.fetch(:close, true)
title_output << content_tag(:button, class: "dropdown-title-button dropdown-menu-close", aria: { label: "Close" }, type: "button") do title_output << content_tag(:button, class: "dropdown-title-button dropdown-menu-close", aria: { label: "Close" }, type: "button") do
icon('times', class: 'dropdown-menu-close-icon') sprite_icon('close', css_class: 'dropdown-menu-close-icon')
end end
end end
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
%tr %tr
%td.shortcut %td.shortcut
%kbd %kbd
%i.fa.fa-arrow-up = sprite_icon('arrow-up', size: 12)
%td= _('Edit your most recent comment in a thread (from an empty textarea)') %td= _('Edit your most recent comment in a thread (from an empty textarea)')
%tbody %tbody
%tr %tr
...@@ -91,28 +91,28 @@ ...@@ -91,28 +91,28 @@
%tr %tr
%td.shortcut %td.shortcut
%kbd %kbd
%i.fa.fa-arrow-left = sprite_icon('arrow-left', size: 12)
\/ \/
%kbd h %kbd h
%td= _('Scroll left') %td= _('Scroll left')
%tr %tr
%td.shortcut %td.shortcut
%kbd %kbd
%i.fa.fa-arrow-right = sprite_icon('arrow-right', size: 12)
\/ \/
%kbd l %kbd l
%td= _('Scroll right') %td= _('Scroll right')
%tr %tr
%td.shortcut %td.shortcut
%kbd %kbd
%i.fa.fa-arrow-up = sprite_icon('arrow-up', size: 12)
\/ \/
%kbd k %kbd k
%td= _('Scroll up') %td= _('Scroll up')
%tr %tr
%td.shortcut %td.shortcut
%kbd %kbd
%i.fa.fa-arrow-down = sprite_icon('arrow-down', size: 12)
\/ \/
%kbd j %kbd j
%td= _('Scroll down') %td= _('Scroll down')
...@@ -120,14 +120,14 @@ ...@@ -120,14 +120,14 @@
%td.shortcut %td.shortcut
%kbd %kbd
shift shift
%i.fa.fa-arrow-up = sprite_icon('arrow-up', size: 12)
\/ k \/ k
%td= _('Scroll to top') %td= _('Scroll to top')
%tr %tr
%td.shortcut %td.shortcut
%kbd %kbd
shift shift
%i.fa.fa-arrow-down = sprite_icon('arrow-down', size: 12)
\/ j \/ j
%td= _('Scroll to bottom') %td= _('Scroll to bottom')
.col-lg-4 .col-lg-4
...@@ -231,12 +231,12 @@ ...@@ -231,12 +231,12 @@
%tr %tr
%td.shortcut %td.shortcut
%kbd %kbd
%i.fa.fa-arrow-up = sprite_icon('arrow-up', size: 12)
%td= _('Move selection up') %td= _('Move selection up')
%tr %tr
%td.shortcut %td.shortcut
%kbd %kbd
%i.fa.fa-arrow-down = sprite_icon('arrow-down', size: 12)
%td= _('Move selection down') %td= _('Move selection down')
%tr %tr
%td.shortcut %td.shortcut
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.row-content-block .row-content-block
.float-right .float-right
= link_to(sherlock_transaction_path(@transaction), class: 'btn') do = link_to(sherlock_transaction_path(@transaction), class: 'btn') do
%i.fa.fa-arrow-left = sprite_icon('arrow-left')
= t('sherlock.transaction') = t('sherlock.transaction')
.oneline .oneline
= t('sherlock.file_sample') = t('sherlock.file_sample')
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
.row-content-block .row-content-block
.float-right .float-right
= link_to(sherlock_transaction_path(@transaction), class: 'btn') do = link_to(sherlock_transaction_path(@transaction), class: 'btn') do
%i.fa.fa-arrow-left = sprite_icon('arrow-left')
= t('sherlock.transaction') = t('sherlock.transaction')
.oneline .oneline
= t('sherlock.query') = t('sherlock.query')
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
.row-content-block .row-content-block
.float-right .float-right
= link_to(sherlock_transactions_path, class: 'btn') do = link_to(sherlock_transactions_path, class: 'btn') do
%i.fa.fa-arrow-left = sprite_icon('arrow-left')
= t('sherlock.all_transactions') = t('sherlock.all_transactions')
.oneline .oneline
= t('sherlock.transaction') = t('sherlock.transaction')
......
---
title: Replace fa-arrow-* with GitLab SVG icons
merge_request: 41158
author:
type: changed
...@@ -43,7 +43,7 @@ describe('DropdownCreateLabelComponent', () => { ...@@ -43,7 +43,7 @@ describe('DropdownCreateLabelComponent', () => {
); );
expect(backButtonEl).not.toBe(null); expect(backButtonEl).not.toBe(null);
expect(backButtonEl.querySelector('.fa-arrow-left')).not.toBe(null); expect(backButtonEl.querySelector('[data-testid="arrow-left-icon"]')).not.toBe(null);
}); });
it('renders component header element as `Create new label` when `headerTitle` prop is not provided', () => { it('renders component header element as `Create new label` when `headerTitle` prop is not provided', () => {
......
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