From 440329249a37c7e1933ac8848073460b9e966b21 Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Thu, 10 Jan 2019 13:23:42 -0500 Subject: [PATCH] Fix disabled download links --- styles/sections/_task_order.scss | 14 ++++++++++---- templates/workspaces/task_orders/show.html | 12 +++++++++--- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/styles/sections/_task_order.scss b/styles/sections/_task_order.scss index 6ac86027..9055ed97 100644 --- a/styles/sections/_task_order.scss +++ b/styles/sections/_task_order.scss @@ -87,10 +87,6 @@ @include icon-color($color-cool-blue-lighter); } } - - .icon-link.disabled { - color: $color-cool-blue-lighter; - } } .task-order-document-link__icon { @@ -104,6 +100,16 @@ .task-order-document-details__description { font-style: italic; } + + .task-order-document-details__disabled_link { + @include icon-link; + cursor: unset; + &:hover { + background-color: unset; + color: $color-cool-blue-lighter; + } + color: $color-cool-blue-lighter; + } } } diff --git a/templates/workspaces/task_orders/show.html b/templates/workspaces/task_orders/show.html index f2c18427..c1fcab65 100644 --- a/templates/workspaces/task_orders/show.html +++ b/templates/workspaces/task_orders/show.html @@ -33,9 +33,15 @@ {{ Icon("download") }}
- - {{ title }} - + {% if disabled %} + + {% else %} + + {{ title }} + + {% endif %} {% if description %}
{{ description }}