discourse/app/assets/javascripts/select-kit/addon/templates/components/selected-choice.hbs
Joffrey JAFFEUX cb59681d86
DEV: select-kit third major update with focus on accessibility (#13303)
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
2021-08-23 10:44:19 +02:00

11 lines
402 B
Handlebars

<button aria-label={{i18n "select_kit.delete_item" name=itemName}} id="{{id}}-choice" data-value={{itemValue}} data-name={{itemName}} type="button" {{action selectKit.deselect item}} class="btn btn-default selected-choice {{extraClass}}">
{{d-icon "times"}}
{{#if (has-block)}}
{{yield}}
{{else}}
<span class="d-button-label">
{{html-safe itemName}}
</span>
{{/if}}
</button>