mirror of https://github.com/sveltejs/svelte
Enhance documentation for href validation warnings to better explain accessibility concerns and provide clear alternatives. This addresses confusion from issue #15654. Changes: - Explain why href="#", empty href, and javascript: URLs are problematic - Provide practical alternatives (buttons for actions, valid hrefs for navigation) - Include styling examples for making buttons look like links - Add development placeholder suggestionspull/16461/head
parent
ce4a99ed6d
commit
3262ca1ad0
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
"svelte": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
docs: improve a11y_invalid_attribute warning documentation
|
||||||
|
|
||||||
|
Enhance documentation for href validation warnings to better explain accessibility concerns and provide clear alternatives. This addresses confusion from issue #15654.
|
||||||
|
|
||||||
|
- Explain why href="#", empty href, and javascript: URLs are problematic for accessibility
|
||||||
|
- Provide practical alternatives (buttons for actions, valid hrefs for navigation)
|
||||||
|
- Include styling examples for making buttons look like links
|
||||||
|
- Add development placeholder suggestions
|
Loading…
Reference in new issue