mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(link)!: do not render p
for disabled link
Closes #1924 Svelte 5 will not compile if `div` is nested inside `p` element. Refactor Link to render an `a` instead of `p` when disabled.
This commit is contained in:
parent
a0d5028540
commit
8bffc17d65
4 changed files with 24 additions and 21 deletions
|
@ -5831,7 +5831,7 @@
|
|||
"name": "ref",
|
||||
"kind": "let",
|
||||
"description": "Obtain a reference to the top-level HTML element",
|
||||
"type": "null | HTMLAnchorElement | HTMLParagraphElement",
|
||||
"type": "null | HTMLAnchorElement",
|
||||
"value": "null",
|
||||
"isFunction": false,
|
||||
"isFunctionDeclaration": false,
|
||||
|
@ -5851,13 +5851,13 @@
|
|||
}
|
||||
],
|
||||
"events": [
|
||||
{ "type": "forwarded", "name": "click", "element": "p" },
|
||||
{ "type": "forwarded", "name": "mouseover", "element": "p" },
|
||||
{ "type": "forwarded", "name": "mouseenter", "element": "p" },
|
||||
{ "type": "forwarded", "name": "mouseleave", "element": "p" }
|
||||
{ "type": "forwarded", "name": "click", "element": "a" },
|
||||
{ "type": "forwarded", "name": "mouseover", "element": "a" },
|
||||
{ "type": "forwarded", "name": "mouseenter", "element": "a" },
|
||||
{ "type": "forwarded", "name": "mouseleave", "element": "a" }
|
||||
],
|
||||
"typedefs": [],
|
||||
"rest_props": { "type": "Element", "name": "a | p" }
|
||||
"rest_props": { "type": "Element", "name": "a" }
|
||||
},
|
||||
{
|
||||
"moduleName": "ListBox",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue