0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 00:46:29 +01:00
Commit Graph

7033 Commits

Author SHA1 Message Date
Tan Li Hau
132dbecc58
Update CHANGELOG.md 2022-09-21 21:49:12 +08:00
Tan Li Hau
b20fb114a6
allow nullish values for component event handlers (#7863) 2022-09-21 21:48:01 +08:00
Yuichiro Yamashita
25a05bf952 update changelog 2022-09-15 22:26:15 +09:00
Yuichiro Yamashita
433460ec2d
[feat] skip custom element check if <svelte:element> uses under svg (#7869)
* add test

* skip custom element check if svelte element uses under svg
2022-09-15 22:22:40 +09:00
Tan Li Hau
56bcec5ddd
Update CHANGELOG.md 2022-09-13 23:57:13 +08:00
Yuichiro Yamashita
5adac302c0
[fix] call attribute bindings for custom element if <svelte:element> render custom element (#7766)
* call attr bindings if tag is custom element

* add test
2022-09-13 23:56:19 +08:00
Tan Li Hau
c113d9d978
Update CHANGELOG.md 2022-09-13 23:55:22 +08:00
metonym
980aff8a4a
[fix] omit a11y warning for native checkbox/radio inputs (#7838)
* [fix] omit a11y warning for native checkbox/radio inputs

Fixes #7837

* align implementation with eslint-plugin-jsx-a11y

Co-authored-by: tanhauhau <lhtan93@gmail.com>
2022-09-13 23:44:20 +08:00
Tan Li Hau
d7cfe22f37
Update CHANGELOG.md 2022-09-13 21:40:09 +08:00
MCMXC
82013aa161
feat(a11y): add click-events-have-key-events rule (#5073)
* feat(a11y): add click-events-have-key-events rule

Signed-off-by: mhatvan <markus_hatvan@aon.at>

* Fine-tune click-events-have-key-events rule

Signed-off-by: mhatvan <markus_hatvan@aon.at>

* Implement PR feedback

Signed-off-by: Markus Hatvan <markus_hatvan@aon.at>

* Implement PR feedback

Signed-off-by: Markus Hatvan <markus_hatvan@aon.at>

* slight refactor to use existing utils

* update docs

* fix rebase conflicts

Signed-off-by: mhatvan <markus_hatvan@aon.at>
Signed-off-by: Markus Hatvan <markus_hatvan@aon.at>
Co-authored-by: tanhauhau <lhtan93@gmail.com>
Co-authored-by: dsfx3d <dsfx3d@gmail.com>
2022-09-13 21:22:10 +08:00
Tan Li Hau
64690974dd
Update CHANGELOG.md 2022-09-13 19:22:02 +08:00
Yuichiro Yamashita
e2538c594b
[feat] support --style-props for <svelte:component> (#7468)
* add test

* support --style-props for <svelte:component>

* refactor

* add more test

* support switching instance

* add test with svelte:self

* merge duplicated if statement

* slight refactor

* remove unnecessary anchor

* reorder insertion

Co-authored-by: tanhauhau <lhtan93@gmail.com>
2022-09-13 19:20:45 +08:00
Tan Li Hau
75a7c3e68f
Update CHANGELOG.md 2022-09-13 19:19:35 +08:00
tanhauhau
899d0cc67c update docs for a11y-no-noninteractive-tabindex and rename from a11y-no-nointeractive-tabindex -> a11y-no-noninteractive-tabindex 2022-09-13 19:16:58 +08:00
Shinobu Hayashi
2cd661156e
[feat] Add a11y rule to check no tabindex in nointeractive element (#6693)
* [feature] add util module to check element is interactive element

* [feature] add util module to check role is interactive role

* [feature] add a11y checker for no-nointeractive-tabindex

* [chore] add test for no-nointeractive-tabindex

* [chore] fix tabindex-no-positive test div -> button

* [refactor] bundle up two filter into one

* Refactor: export a11y-no-nointeractive-tabindex warning from compiler_warning

* slight refactor to use existing utils

Co-authored-by: tanhauhau <lhtan93@gmail.com>
2022-09-13 19:10:45 +08:00
Tan Li Hau
7331c06a74
Update CHANGELOG.md 2022-09-12 03:30:02 +08:00
Vaibhav Rai
78b81277e7
[fix]: Warn user when binding rest operator (#7526)
* Fix 6860: Warn user when binding rest operator

* move the binding validation to Binding node

* update test

Co-authored-by: vaibhav rai <vaibhavrai@vaibhavs-MacBook-Pro.local>

* add more test case, supporting deep destructuring and array destructuring

Co-authored-by: vaibhav rai <vaibhavrai@vaibhavs-MacBook-Pro.local>
Co-authored-by: tanhauhau <lhtan93@gmail.com>
2022-09-12 03:28:30 +08:00
Tan Li Hau
87f0c461a8
Update CHANGELOG.md 2022-09-12 03:23:12 +08:00
Mathias Picker
6ec8ecf799
[fix] render of svg elements when using svelte:element (#7695)
* fixed render statement for svg when using  svelte:element

* removed unecessary stuff in test
2022-09-12 03:22:17 +08:00
Tan Li Hau
1afcfd2b5f
Update CHANGELOG.md 2022-09-12 03:15:45 +08:00
Tan Li Hau
e2ef2b8731
apply class for dynamic elements (#7652) 2022-09-12 03:14:47 +08:00
Tan Li Hau
78a249be36
Update CHANGELOG.md 2022-09-12 03:04:47 +08:00
Yuichiro Yamashita
a5ca0ad65b
[fix] added support for inert (remove duplicated code) (#7785)
* fix: added support for inert

* remove duplicated boolean_attributes

Co-authored-by: Gautier Ben Aïm <48261497+GauBen@users.noreply.github.com>
2022-09-12 03:03:02 +08:00
Tan Li Hau
2f6afefab0
Update CHANGELOG.md 2022-09-12 02:49:22 +08:00
Yuichiro Yamashita
1e2a55c88e
throw warning instead of error (#7834) 2022-09-12 02:48:13 +08:00
Tan Li Hau
adcaa3c050
Update CHANGELOG.md 2022-09-12 02:41:18 +08:00
Maximiliano Ruani
8ffc8fd77b
[fix] Fix hydration duplicate svelte:head tag issue with @html expressions and nested components (#7745)
* Fix hydration duplicate `svelte:head` tag issue with `@html` and nested components #7444 #6463

* - Changed comment style to HEAD_${head_id}_START and HEAD_${head_id}_END
- Improved claim logic
- Changed tests accordingly
2022-09-12 02:35:17 +08:00
Ben McCann
7ac3854613
[docs] remove beta label from SvelteKit mention (#7853) 2022-09-10 14:00:50 -07:00
Conduitry
24aff3032d -> v3.50.1 2022-09-08 16:52:21 -04:00
Yuichiro Yamashita
07d6d179ab
[fix] style manager transition regression (#7831) 2022-09-08 16:49:57 -04:00
Yuichiro Yamashita
ed078e31fe
update changelog (#7835) 2022-09-04 12:08:46 +02:00
Yuichiro Yamashita
feb8dfce61
[fix] add all global objects / functions (#7786) 2022-09-04 13:13:55 +09:00
schelv
f3f3d074c5
[docs] use KeyboardEvent.code (#7809) 2022-09-04 01:06:57 +09:00
Conduitry
46990652c0 -> v3.50.0 2022-09-02 08:12:22 -04:00
Simon H
efe1df0e23
[fix] Only show lowercase component warning for non-html/svg elements (#7826)
Fixes #5712
2022-09-02 07:48:40 -04:00
Simon H
af64ad9483
update changelog 2022-09-02 13:32:19 +02:00
Simon H
bddd795746
[feat] enhance action typings (#7805)
Allows a way to tell language tools which additional attributes and events the action brings to the HTML element
Related https://github.com/sveltejs/language-tools/pull/1553
2022-09-02 13:21:28 +02:00
Daniel Sandoval
0ed453dc11
[docs] "What's new in Svelte" September newsletter (#7814) 2022-09-01 15:42:09 -07:00
Ben McCann
a8616701e7
[docs] clarify reactivity rules (#7802) 2022-08-29 21:47:20 +02:00
Ben McCann
8238ac46dc
Update CHANGELOG.md 2022-08-22 19:22:04 -07:00
Yosuke Ota
8d26b4a19d
[chore] improve performance by using trimRight() instead of regex replace (#7706) 2022-08-22 19:20:46 -07:00
孟世博
d5efa2e446
[docs] Typescript -> TypeScript (#7797)
* [docs] fix spellings error

* fix ts
2022-08-19 13:30:22 +09:00
Yuichiro Yamashita
040192dd59
update changelog 2022-08-14 17:27:10 +09:00
Yuichiro Yamashita
3570a5361e
[fix] Apply class directive properly after half way transition (#7765) 2022-08-14 17:26:19 +09:00
Tan Li Hau
012d639b42
Update 05-accessibility-warnings.md
reorder a11y warnings
2022-08-09 00:05:51 +08:00
Tan Li Hau
dc83d0b30d
Update CHANGELOG.md 2022-08-09 00:03:25 +08:00
Niko Simonson
419641bb3e
Recursively check label children for input control (#5323)
* Recursively check label children for input control

* Add another test case

* Update snapshot

* clean up test

Co-authored-by: tanhauhau <lhtan93@gmail.com>
2022-08-09 00:01:54 +08:00
Yuichiro Yamashita
5b29124fbd
update changelog 2022-08-07 02:56:47 +09:00
Tal500
816409a27b
[fix] Use Node.parentNode instead Node.parentElement for legacy browser support (#7724) 2022-08-07 02:54:23 +09:00
Daniel Sandoval
8513e299ef
[docs] "What's new in Svelte" August newsletter (#7741) 2022-08-02 17:30:05 +02:00