Skip to content

Fix aria label on Empty component - #606

Merged
TorstenDittmann merged 1 commit into
mainfrom
fix-empty-component
Nov 2, 2023
Merged

Fix aria label on Empty component#606
TorstenDittmann merged 1 commit into
mainfrom
fix-empty-component

Conversation

@stnguyen90

Copy link
Copy Markdown
Contributor

What does this PR do?

The string wasn't interpolating target.

Test Plan

Manual

Related PRs and Issues

None

Have you read the Contributing Guidelines on issues?

Yes

@vercel

vercelBot commented Oct 26, 2023

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

NameStatusPreviewCommentsUpdated (UTC)
console✅ Ready (Inspect)Visit Preview💬 Add feedbackOct 31, 2023 0:36am
console-cloud✅ Ready (Inspect)Visit Preview💬 Add feedbackOct 31, 2023 0:36am
console-preview✅ Ready (Inspect)Visit Preview💬 Add feedbackOct 31, 2023 0:36am
console-preview-cloud✅ Ready (Inspect)Visit Preview💬 Add feedbackOct 31, 2023 0:36am

Comment threadsrc/lib/components/empty.svelte Outdated
on:click|preventDefault
on:click={track}
aria-label={`create {target}`}>
aria-label={`create ${target}`}>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Svelte has a more straightforward syntax for interpolating on HTML attributes

Suggested change
aria-label={`create ${target}`}>
aria-label="create {target}">

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the tip! I've updated the attribute as suggested.

The string wasn't interpolating target.
@TorstenDittmann
TorstenDittmann merged commit 4e39960 into mainNov 2, 2023
@TorstenDittmann
TorstenDittmann deleted the fix-empty-component branch November 2, 2023 11:48
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@stnguyen90@TorstenDittmann@TGlide