Slightly touched up tooltips

This commit is contained in:
Gregor Kleen 2018-11-20 18:45:48 +01:00
parent deeba675fa
commit f58327eeb1
2 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,8 @@
.js-tooltip {
position: relative;
display: inline-block;
height: 1.5rem;
vertical-align: -0.375rem;
&:hover .tooltip__content {
display: inline-block;

View File

@ -6,10 +6,11 @@ $case formLayout
$# TODO: add class 'form-group--submit' if this is the submit-button view
<div .form-group :fvRequired view:.form-group--required :not $ fvRequired view:.form-group--optional :isJust $ fvErrors view:.form-group--has-error>
$if not (Blaze.null $ fvLabel view)
<label .form-group__label for=#{fvId view}>#{fvLabel view}
<label .form-group__label for=#{fvId view}>
#{fvLabel view}
$maybe tooltip <- fvTooltip view
<div .js-tooltip>
<div .tooltip__handle>
<div .tooltip__content>^{tooltip}
<div .form-group__input>
^{fvInput view}
$maybe tooltip <- fvTooltip view
<div .js-tooltip>
<div .tooltip__handle>
<div .tooltip__content>^{tooltip}