Skip to content

Commit

Permalink
fix(info): replace drop by modal (#193)
Browse files Browse the repository at this point in the history
We had some issues with the "drop" element (positioning, width), so
we'll go with the slightly less elegant but also more stable modal.
  • Loading branch information
czosel committed May 3, 2019
1 parent 243ff0b commit ea2a026
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions addon/templates/components/cf-field/info.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<button type="button" class="uk-icon-button" uk-icon="info"></button>
<button type="button" class="uk-icon-button" uk-icon="info" {{action (mut showModal) true}}></button>

<div uk-drop="pos: bottom-justify; boundary: .uk-form-controls; boundary-align: true">
<div class="uk-card uk-card-body uk-card-default">
{{markdown-to-html text}}
</div>
</div>
{{#uk-modal visible=showModal}}
{{markdown-to-html text}}
{{/uk-modal}}

0 comments on commit ea2a026

Please sign in to comment.