Ghost/ghost/admin/app/components/tabs/tab.hbs
2022-10-19 15:20:15 +04:00

14 lines
349 B
Handlebars

<button
class="tab {{if this.isSelectedTab "tab-selected" }}"
id="{{this.id}}"
type="button"
role="tab"
aria-selected="{{this.isSelectedTab}}"
aria-controls="{{this.id}}-panel"
tabindex="{{if this.isSelectedTab "0" "-1"}}"
{{on "click" this.handleClick}}
{{on "keyup" this.handleKeyup}}
>
{{yield}}
</button>