open-vault/ui/app/templates/components/status-menu.hbs
Matthew Irish 353a2bdb58
UI icon - add size (#6736)
* add size prop to icon component

* use size instead of css classes to adjust Icons

* add knobs for icon stories
2019-05-16 14:49:38 -05:00

13 lines
624 B
Handlebars

{{#basic-dropdown-hover horizontalPosition="auto-left" verticalPosition="below" renderInPlace=media.isMobile as |d|}}
{{#d.trigger tagName=(if (eq type "replication") "span" "button") class=(if (eq type "replication") "" "button is-transparent")}}
<Icon @glyph={{glyphName}} @size="l" aria-label={{ariaLabel}} />
<div class="status-menu-label">
{{label}}
</div>
<Chevron @direction="down" class="has-text-white is-status-chevron"/>
{{/d.trigger}}
{{#d.content class=(concat "status-menu-content status-menu-content-" type)}}
{{partial partialName}}
{{/d.content}}
{{/basic-dropdown-hover}}