Commit 79b964aa authored by Justin Ho's avatar Justin Ho

Update fa-chevron-up icons to GitLab SVG

- Update Vue / HAML
- Remove CSS for chevron-up
parent 3be890c7
...@@ -65,8 +65,8 @@ export default { ...@@ -65,8 +65,8 @@ export default {
}; };
}, },
computed: { computed: {
toggleChevronClass() { toggleChevronIconName() {
return this.expanded ? 'fa-chevron-up' : 'fa-chevron-down'; return this.expanded ? 'chevron-up' : 'chevron-down';
}, },
noteTimestampLink() { noteTimestampLink() {
return this.noteId ? `#note_${this.noteId}` : undefined; return this.noteId ? `#note_${this.noteId}` : undefined;
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
type="button" type="button"
@click="handleToggle" @click="handleToggle"
> >
<i ref="chevronIcon" :class="toggleChevronClass" class="fa" aria-hidden="true"></i> <gl-icon ref="chevronIcon" :name="toggleChevronIconName" aria-hidden="true" />
{{ __('Toggle thread') }} {{ __('Toggle thread') }}
</button> </button>
</div> </div>
......
...@@ -109,10 +109,6 @@ ...@@ -109,10 +109,6 @@
content: '\f0da'; content: '\f0da';
} }
.fa-chevron-up::before {
content: '\f077';
}
.fa-exclamation-circle::before { .fa-exclamation-circle::before {
content: '\f06a'; content: '\f06a';
} }
......
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
= f.hidden_field :data, value: license_key = f.hidden_field :data, value: license_key
%a#hide-license.hide-license{ href: '#hide-license' } %a#hide-license.hide-license{ href: '#hide-license' }
Show license key Show license key
= icon('chevron-down') = sprite_icon('chevron-down')
%a#show-license.show-license{ href: '#show-license' } %a#show-license.show-license{ href: '#show-license' }
Hide license key Hide license key
= icon('chevron-up') = sprite_icon('chevron-up')
.card.trial-license-preview.gl-mt-5 .card.trial-license-preview.gl-mt-5
= license_key = license_key
.modal-footer.form-actions .modal-footer.form-actions
......
...@@ -78,7 +78,7 @@ describe('NoteHeader component', () => { ...@@ -78,7 +78,7 @@ describe('NoteHeader component', () => {
expanded: true, expanded: true,
}); });
expect(findChevronIcon().classes()).toContain('fa-chevron-up'); expect(findChevronIcon().props('name')).toBe('chevron-up');
}); });
it('has chevron-down icon if expanded prop is false', () => { it('has chevron-down icon if expanded prop is false', () => {
...@@ -87,7 +87,7 @@ describe('NoteHeader component', () => { ...@@ -87,7 +87,7 @@ describe('NoteHeader component', () => {
expanded: false, expanded: false,
}); });
expect(findChevronIcon().classes()).toContain('fa-chevron-down'); expect(findChevronIcon().props('name')).toBe('chevron-down');
}); });
}); });
......
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