Commit 87a715f3 authored by Robert Knight's avatar Robert Knight

Use the 'refresh' icon in the apply update button in the top bar

Use the <svg-icon> component to render a refresh icon in the top bar and
adjust the styling to center the icon and pending update count
vertically.
parent c1f14cfd
...@@ -68,8 +68,13 @@ ...@@ -68,8 +68,13 @@
// Button which indicates that other users have made or edited annotations // Button which indicates that other users have made or edited annotations
// on the current page and applies them when clicked // on the current page and applies them when clicked
//
// The button displays a 'refresh' icon and an update count, both of which
// should be vertically centered within the icon.
.top-bar__apply-update-btn { .top-bar__apply-update-btn {
display: inline-block; display: flex;
flex-direction: row;
align-items: center;
flex-shrink: 0; flex-shrink: 0;
margin-right: 5px; margin-right: 5px;
...@@ -85,6 +90,12 @@ ...@@ -85,6 +90,12 @@
user-select: none; user-select: none;
} }
.top-bar__apply-icon {
display: inline-block;
line-height: 12px;
margin-right: 5px;
}
.top-bar__dropdown-arrow { .top-bar__dropdown-arrow {
color: $color-dove-gray; color: $color-dove-gray;
} }
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
h-tooltip h-tooltip
tooltip-direction="up" tooltip-direction="up"
aria-label="View {{pendingUpdateCount}} updates"> aria-label="View {{pendingUpdateCount}} updates">
<i class="h-icon-feed"></i> {{pendingUpdateCount}} <svg-icon class="top-bar__apply-icon" name="'refresh'"></svg-icon>
{{pendingUpdateCount}}
</a> </a>
<login-control <login-control
auth="auth" auth="auth"
...@@ -40,7 +41,8 @@ ...@@ -40,7 +41,8 @@
h-tooltip h-tooltip
tooltip-direction="up" tooltip-direction="up"
aria-label="View {{pendingUpdateCount}} updates"> aria-label="View {{pendingUpdateCount}} updates">
<i class="h-icon-feed"></i> {{pendingUpdateCount}} <svg-icon class="top-bar__apply-icon" name="'refresh'"></svg-icon>
{{pendingUpdateCount}}
</a> </a>
<search-input <search-input
class="search-input" class="search-input"
......
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