question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

aria attributes no longer recognized

See original GitHub issue

https://github.com/henribru/volar-html-attribute-bug

<button @click="count++" aria-label="foo">count is: {{ count }}</button>

Type ‘{ ariaLabel: string; “aria-label”: string; }’ is not assignable to type ‘ElementAttrs<ButtonHTMLAttributes>’. Property ‘ariaLabel’ does not exist on type ‘ElementAttrs<ButtonHTMLAttributes>’. Did you mean ‘‘aria-label’’?

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:8
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
adenvtcommented, Jun 3, 2022

I got something weird, aria-label work perfectly. But attribute data-testid have an error.

It happen in 0.36.0.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

aria-invalid - Accessibility - MDN Web Docs
The aria-invalid attribute is used to indicate that the value entered into an input field is not in a format or a value...
Read more >
ARIA attributes must conform to valid names | Axe Rules
ARIA attributes starting with aria- must have valid names. Referring to a misspelled attribute or to one that does not exist will result...
Read more >
6. Supported States and Properties - W3C
In this document, states and properties are both treated as aria-prefixed ... Use of a given state or property is not defined when...
Read more >
aria attributes not allowed? – IDEs Support (IntelliJ Platform)
The aria-label attribute in the inline svg is being flagged by PHPStorm: "Attribute aria-label is not allowed here". This behavior seems involve ...
Read more >
How Not To Misuse ARIA States, Properties and Roles
Many content authors will put ARIA properties on content in an attempt to meet accessibility standards and make their content work with assistive...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found