Skip to content

Commit d8198d2

Browse files
authored
Accessibility: Adding a label attribute for <uui-button> in news dashboard (#20780)
Added 'label attribute to the uui-button in the umb-news.card.element + Removing the redundant text for uui-button since label attribute is now present
1 parent 9fa382e commit d8198d2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Umbraco.Web.UI.Client/src/packages/umbraco-news/components/umb-news-card.element.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ export class UmbNewsCardElement extends UmbLitElement {
3636
${this.item.body ? html`<div class="card-text">${unsafeHTML(this.item.body)}</div>` : nothing}
3737
${!isLastRow && this.item.url
3838
? html`<div class="card-actions">
39-
<uui-button look="outline" href=${this.item.url} target="_blank" rel="noopener">
40-
${this.item.buttonText || 'Open'}
41-
</uui-button>
39+
<uui-button
40+
look="outline"
41+
href=${this.item.url}
42+
target="_blank"
43+
rel="noopener"
44+
label=${this.item.buttonText || 'Open'}></uui-button>
4245
</div>`
4346
: nothing}
4447
</div>

0 commit comments

Comments
 (0)