Use Tooltip component and fix overflow

This commit is contained in:
George Drummond 2019-02-18 11:18:38 -05:00
parent 474450d07a
commit 93a118d434
No known key found for this signature in database
GPG Key ID: 296DD6077123BF17
3 changed files with 13 additions and 3 deletions

View File

@ -65,6 +65,10 @@
margin: 2 * $gap; margin: 2 * $gap;
.col--grow {
overflow: inherit;
}
.portfolio-header__name { .portfolio-header__name {
@include h1; @include h1;
} }

View File

@ -1,4 +1,5 @@
{% from "components/icon.html" import Icon %} {% from "components/icon.html" import Icon %}
{% from "components/tooltip.html" import Tooltip %}
{% macro Link(icon, text, url, active=False) %} {% macro Link(icon, text, url, active=False) %}
<a class='icon-link {{ "active icon-link--disabled" if active }}' href='{{ url }}'> <a class='icon-link {{ "active icon-link--disabled" if active }}' href='{{ url }}'>
@ -17,9 +18,12 @@
<div class='portfolio-header__budget row'> <div class='portfolio-header__budget row'>
<div class='column-left'> <div class='column-left'>
<span>Available budget</span> <span>Available budget</span>
<button type="button" tabindex="0" class="icon-tooltip" v-tooltip.right="{content: 'The available budget shown includes the available budget of all active task orders', container: false}"> {{
{{ Icon('info') }} Tooltip(
</button> ('portfolios.task_orders.available_budget_help_description' | translate),
title=''
)
}}
</div> </div>
<div class='portfolio-header__budget--amount'> <div class='portfolio-header__budget--amount'>
<span class='portfolio-header__budget--dollars'> <span class='portfolio-header__budget--dollars'>

View File

@ -510,6 +510,8 @@ task_orders:
review_title: Task Order Builder review_title: Task Order Builder
task_order_information: Task Order Information task_order_information: Task Order Information
portfolios: portfolios:
task_orders:
available_budget_help_description: The available budget shown includes the available budget of all active task orders
index: index:
empty: empty:
title: You have no apps yet title: You have no apps yet