mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 03:44:45 +08:00
cb59681d86
Major changes included: - better support for screen readers - trapping focus in modals - better tabbing order in composer - alerts on no content found/number of items found - better autofocus in modals - mini-tag-chooser is now a multi-select component - each multi-select-component will now display selection on one row
28 lines
691 B
Handlebars
28 lines
691 B
Handlebars
{{#if selectKit.options.showFullTitle}}
|
|
<div lang={{lang}} title={{title}} data-value={{value}} data-name={{name}} class="select-kit-selected-name selected-name choice">
|
|
{{#if item.icon}}
|
|
{{d-icon item.icon}}
|
|
{{/if}}
|
|
|
|
<span class="name">
|
|
{{label}}
|
|
</span>
|
|
|
|
{{#if shouldDisplayClearableButton}}
|
|
{{d-button
|
|
class="btn-clear"
|
|
icon="times"
|
|
action=selectKit.deselect
|
|
actionParam=item
|
|
ariaLabel="clear_input"
|
|
}}
|
|
{{/if}}
|
|
</div>
|
|
{{else}}
|
|
{{#if item.icon}}
|
|
<div role="textbox" lang={{lang}} class="select-kit-selected-name selected-name choice">
|
|
{{d-icon item.icon}}
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|