Commit e334c3f3 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner

Replace collapse/expand icons with equivalent SVGs

parent 9e0c19f1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="16" height="16" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g transform="matrix(6.12323e-17,1,-1,6.12323e-17,15.9996,0.000432345)">
<path fill="currentColor" d="M7.456,4.212C7.762,3.931 8.238,3.931 8.544,4.212L14.774,10.079C15.075,10.362 15.075,10.821 14.774,11.104L14.048,11.788C13.742,12.069 13.267,12.069 12.961,11.789L8,7.139L3.039,11.789C2.733,12.069 2.258,12.069 1.952,11.788L1.225,11.104C1.081,10.972 0.999,10.786 0.999,10.592C0.999,10.397 1.081,10.211 1.225,10.079L7.455,4.212L7.456,4.212Z" />
</g>
</svg>
...@@ -10,6 +10,7 @@ const icons = { ...@@ -10,6 +10,7 @@ const icons = {
'arrow-left': require('../../images/icons/arrow-left.svg'), 'arrow-left': require('../../images/icons/arrow-left.svg'),
'arrow-right': require('../../images/icons/arrow-right.svg'), 'arrow-right': require('../../images/icons/arrow-right.svg'),
cancel: require('../../images/icons/cancel.svg'), cancel: require('../../images/icons/cancel.svg'),
'caret-right': require('../../images/icons/caret-right.svg'),
'cc-std': require('../../images/icons/cc-std.svg'), 'cc-std': require('../../images/icons/cc-std.svg'),
'cc-zero': require('../../images/icons/cc-zero.svg'), 'cc-zero': require('../../images/icons/cc-zero.svg'),
'collapse-menu': require('../../images/icons/collapse-menu.svg'), 'collapse-menu': require('../../images/icons/collapse-menu.svg'),
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
ng-class="vm.threadToggleClasses()" ng-class="vm.threadToggleClasses()"
title="{{vm.thread.collapsed && 'Expand' || 'Collapse'}}" title="{{vm.thread.collapsed && 'Expand' || 'Collapse'}}"
ng-click="vm.toggleCollapsed()"> ng-click="vm.toggleCollapsed()">
<span ng-class="{'h-icon-arrow-right': vm.thread.collapsed, <svg-icon name="'caret-right'" ng-if="vm.thread.collapsed"></svg-icon>
'h-icon-arrow-drop-down': !vm.thread.collapsed}"></span> <svg-icon name="'expand-menu'" ng-if="!vm.thread.collapsed"></svg-icon>
</a> </a>
<div class="annotation-thread__thread-line"></div> <div class="annotation-thread__thread-line"></div>
</div> </div>
......
...@@ -61,6 +61,7 @@ li:first-child .annotation-thread--top-reply { ...@@ -61,6 +61,7 @@ li:first-child .annotation-thread--top-reply {
color: var.$grey-4; color: var.$grey-4;
display: block; display: block;
text-align: center; text-align: center;
margin-left: 3px;
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
......
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