0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00
Commit Graph

271 Commits

Author SHA1 Message Date
Maxime Dupont
4dd12c0c61
docs: fix fly animation description (#8236) 2023-02-21 11:33:01 +01:00
James Scott-Brown
acba4b72e2
docs: clarify bindings for <select multiple> (#8260)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-02-14 10:04:49 -08:00
Alicia Sykes
0598c989a0
docs: corrects syntax error in transition code sample (#8169)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-02-14 08:57:07 -08:00
Kyrre Gjerstad
d7e4b1c8fc
docs: fix minor typos (#8268)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-02-14 08:25:23 -08:00
James Scott-Brown
ff5c14dc71
docs: format window.navigator.onLine reference as code (#8262) 2023-02-14 08:19:57 -08:00
James Scott-Brown
7706a5f713
docs: link to MDN page on void elements (#8261) 2023-02-14 08:18:06 -08:00
Satvik
6ac24f1d5c
[docs] add missing semicolon (#8190) 2023-02-05 21:00:54 +09:00
wackbyte
094483b397
[fix] say "nonnegative" instead of "positive" tabIndex for a11y-no-noninteractive-tabindex (#8126) 2023-01-02 09:39:55 +08:00
Geoff Rich
6a23d9b65f
[docs] fix transition direction options (#8133) 2022-12-22 09:39:36 +09:00
Nilesh
ad8dbfb9b9
[docs] Add comment about generating a Svelte project without Kit (#8115) 2022-12-15 13:47:02 +01:00
Ben McCann
a0a6bd1f54
[docs] add some basic docs about bundler plugins (#8092) 2022-12-07 11:04:50 -08:00
Yuichiro Yamashita
cc52dc442b
[docs] add explanation about property binding order (#7833)
* update document

* update sentence and position

* update the sentence

* update
2022-12-05 23:18:29 +08:00
Pat Cavit
84d61c61f8
[feat] Add options w/ direction to transitions (#8068) 2022-12-05 22:43:59 +09:00
Maximiliano Ruani
773dedf714
[feat] Compiler option css: 'none' support (#7914) 2022-11-09 10:21:38 -08:00
Josiah Nieves
0a7cf0e73e
[docs] fix typo "bellow" vs "below" (#7955) 2022-10-16 19:45:03 -07:00
gtmnayan
bee1851faa
[feat] |important modifier for style directive (#7489)
* important modifier for style directive

* docs

* Exclude third param if false
third param for set_style is optional

* Remove unused test

Runtime test doesn't work because of weird behaviour of computed style
the puppeteer test should cover it

* remove unnecessary test

Co-authored-by: tanhauhau <lhtan93@gmail.com>
2022-10-13 21:52:06 +08:00
Don Alfons
1ca83c2050
[docs] Improve grammar (#7923)
* [docs] Improve grammar

* revert spelling changes

Co-authored-by: tanhauhau <lhtan93@gmail.com>
2022-10-13 21:01:58 +08:00
metonym
26a428972b
[fix] "not interactive" -> "noninteractive" (#7930) 2022-10-13 20:49:00 +08:00
Ben McCann
1c659193a0
[docs] update SvelteKit status (#7919) 2022-10-07 16:34:31 -07:00
Geoff Rich
ff2759e143
[docs] fix typo in getting started (#7918) 2022-10-07 16:25:19 -07:00
Marcos Mercuri
ce569f97eb
[docs] Add clarification on how reactivity works (#7819)
* Add clarification on how reactivity works

Based on the fact that there are multiple issues were opened related to a perceived bug on the reactive variables, I thought it would be good to add a clarification on the docs. Part of the text is taken from [this comment](https://github.com/sveltejs/svelte/issues/7818#issuecomment-1230374639) that I found super useful.

* Reword based on PR comments
2022-10-06 17:23:29 +08:00
Tan Li Hau
5c5bc27d97
[feat] Support style props for SVG components (#7859) 2022-10-06 01:18:37 +09:00
Shawn
be70a898f3
[docs] fix link redirect to discord (#7911)
* fix link redirect to discord

* fix link redirect to discord
2022-10-05 22:44:08 +08:00
Ben McCann
7d20194d8a
[docs] create getting started guide outside blog (#7812) 2022-10-04 21:38:58 -07: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
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
Ben McCann
a8616701e7
[docs] clarify reactivity rules (#7802) 2022-08-29 21:47:20 +02:00
Tan Li Hau
012d639b42
Update 05-accessibility-warnings.md
reorder a11y warnings
2022-08-09 00:05:51 +08:00
Script Raccoon
474ed42b24
[fix] typo in transition docs (#7739) 2022-08-02 13:45:45 +08:00
Anthony Le Goas
b517df14e4
[feat] check noninteractive roles on interactive elements (#5955)
* check noninteractive roles on interactive elements

* refactor to match the eslint-plugin-jsx-a11y implementation

* update test case

Co-authored-by: tanhauhau <lhtan93@gmail.com>
2022-07-17 17:27:35 +08:00
kwangure
39901986d6
[feat]: Add A11y aria-proptypes check (#6978)
* Add aria prop type list

* feat: check aria attribute types

* feat: add proptype tests

* Add documentation

* use aria-query

Co-authored-by: Nurassyl Zekenov <nurassyl@snoonu.com>
Co-authored-by: mka_882@yahoo.com <mka_882@yahoo.com>
Co-authored-by: tanhauhau <lhtan93@gmail.com>
Co-authored-by: David Mosher <davidmosher@gmail.com>
2022-07-11 09:40:12 +08:00
Mel
1d19aebe38
a11y: Add role-has-required-aria-props rule (#5852)
* Check required props for ARIA roles

* Test required ARIA props check

* Properly indent with tabs in test

* swtich to use aria-query

* fix validation test

* update docs

Co-authored-by: tanhauhau <lhtan93@gmail.com>
2022-07-11 02:23:41 +08:00
Adam Alexander
cab5e7346d
[docs] fix typo in 02-template-syntax.md (#7593)
Tiny typo.
2022-06-08 14:07:51 +02:00
gtmnayan
5242ab9a72
[docs] Fix statement about the order of bind: and on: (#7357)
* Fix statement about order of bind: and on:

* It's just an example

* Revert and modify

* Update site/content/docs/02-template-syntax.md

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>

* Update site/content/docs/02-template-syntax.md

Co-authored-by: Tan Li Hau <tanhauhau@users.noreply.github.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2022-05-18 10:13:05 +08:00
Yuichiro Yamashita
0d017f4820
[fix] rendering void tag for <svelte:element> (#7453) 2022-04-30 14:37:09 -04:00
Tan Li Hau
a2de3894c0
[feat] support const tag for if block (#7451) 2022-04-30 14:34:58 -04:00
Yuichiro Yamashita
11ada98565
[docs] fix sentences in <svelte:element> (#7484) 2022-04-25 15:09:30 +02:00
Tan Li Hau
d554cdbb25
[docs] add more examples on the spring store API docs (#7463)
* add more examples on the spring store API docs

* Update site/content/docs/03-run-time.md

Co-authored-by: Ignatius Bagus <ignatius.mbs@gmail.com>

* Update site/content/docs/03-run-time.md

Co-authored-by: Ignatius Bagus <ignatius.mbs@gmail.com>

Co-authored-by: Ignatius Bagus <ignatius.mbs@gmail.com>
2022-04-20 09:29:34 +08:00
Bjorn Lu
0f94c890f5
[feat] dispatch cancelable custom events (#7064) 2022-04-12 22:52:22 +08:00
gtmnayan
afd3f4e5a9
[feat] Make setContext return the value that was passed in (#7432)
* return value from setContext

* update docs

* Add test

* eof new line

* pacify the linter

* const and tabs
2022-04-11 08:50:28 +08:00
Yuichiro Yamashita
e0d93254fd
[feature] Dynamic elements implementation <svelte:element> (#6898)
Closes #2324

Co-authored-by: Alfred Ringstad <alfred.ringstad@hyperlab.se>
Co-authored-by: Simon Holthausen <simon.holthausen@accso.de>
Co-authored-by: tanhauhau <lhtan93@gmail.com>
2022-04-08 16:54:55 +02:00
Ben McCann
3c11c480b9
[docs] clarify css option (#7271) 2022-04-08 10:25:31 +08:00
TzuHsuan
535a1fc20d
Change top level requirement wording (#7336)
Changed the wording to be more consistent between `<svelte:window>`, `<svelte:body>` and `<svelte:head>`.
Chose "may only appear" over "has to appear" as the latter could be misinterpreted as a compulsory element
2022-04-08 10:22:01 +08:00
Ben McCann
42905c757f
[docs] update bundler documentation (#7414)
* [docs] update bundler documentation

* Update site/content/docs/04-compile-time.md

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2022-04-08 10:20:46 +08:00
Geoff Rich
fc2470494d
[docs] fix broken links (#7194) 2022-02-01 13:43:28 -08:00
Geoff Rich
d1b3f462a5
[docs] add docs for a11y-no-redundant-roles (#7195) 2022-01-27 21:47:03 +01:00
Bjorn Lu
cc445839e3
[docs] explain initial value for bind scroll (#7065)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2022-01-14 13:10:33 +08:00
Tan Li Hau
b5aaa6641b
[feat] implement constants in markup (#6413) 2022-01-11 17:10:09 -05:00
Simon H
26f767e873
[docs] add note about the AST not being public API (#7113) 2022-01-09 10:01:40 +01:00
Paul Murray
8a47b5ec9e
[feat] Style directives (#5923)
* add Style node, interfaces

* style-directives: add parser and runtime test

* style-directives: push styles in to styles array on Element

* style-directives: minimal ssr work

* style-directives: ssr add_styles

* style-directive: tests

* style-directives: work in progress

* obviously incorrect hard-coded color

* tweak

* style directive interface

* style-directives: get text from info in Style node

* style-directives: add_styles func in ElementWrapper

* style-directives: ssr rendering

* handle text-only style directive in tag.ts

* style-directives: handle spread styles in ssr

* style-directives: more parser tests

* style-directives: more inline tests

* style-directives: remove solo tests

* style-directives: cleanup

* style-directives: tweak spread ssr internal

* style-directives: push updater into update chunks; add dynamic test;

* remove .solo

* check for dynamic dependencies before adding update chunk

* add test of multiple styles; remove null styles;

* style-directives: docs; more tests of multiple styles

* style-directives: use camelcase

* style-directives: cleanup

* style-directives: fix mustache template case with template literal

* style-directives: use ternary

* style-directives: linting

* style-directives: remove "text" from interface

* style-directives: actually, remove StyleDirective interface entriely

* add more test, fix test for ssr

* fix lint and tidy up

* add test for css variables

* fix linting errors

Co-authored-by: pmurray73 <pmurray73@bloomberg.net>
Co-authored-by: Tan Li Hau <lhtan93@gmail.com>
2022-01-08 11:09:11 -05:00