consul/ui/packages/consul-ui/app/components/route/title/index.hbs

21 lines
410 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
}}
{{page-title @title separator=@separator}}
{{#if (not-eq @render false)}}
{{@title}}
{{/if}}
<Portal @target="route-announcer">
<div
class="route-title"
...attributes
aria-live="assertive"
aria-atomic="true"
>
{{! Using a handlebars concat here avoid whitespace issues}}
{{concat 'Navigated to ' @title}}
</div>
</Portal>