Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix aria label on Empty component #606

Merged
merged 1 commit into from
Nov 2, 2023
Merged

Conversation

stnguyen90
Copy link
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
Copy link

vercel bot commented Oct 26, 2023

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

Name Status Preview Comments Updated (UTC)
console ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2023 0:36am
console-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2023 0:36am
console-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2023 0:36am
console-preview-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2023 0:36am

@@ -27,7 +27,7 @@
type="button"
on:click|preventDefault
on:click={track}
aria-label={`create {target}`}>
aria-label={`create ${target}`}>
Copy link
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
Contributor Author

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 main Nov 2, 2023
6 checks passed
@TorstenDittmann TorstenDittmann deleted the fix-empty-component branch November 2, 2023 11:48
Sign up for free to 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