Skip to content

Commit 0984835

Browse files
committed
tweak messages
1 parent 669e8c0 commit 0984835

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/svelte/messages/compile-errors/style.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
2525
## css_global_block_invalid_modifier_start
2626

27-
> A `:global` selector at the very beginning cannot be modified by other selectors
27+
> A `:global` selector can only be modified if it is a descendant of other selectors
2828
2929
## css_global_invalid_placement
3030

@@ -48,4 +48,4 @@
4848
4949
## css_type_selector_invalid_placement
5050

51-
> `:global(...)` must not be followed with a type selector
51+
> `:global(...)` must not be followed by a type selector

packages/svelte/src/compiler/errors.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,12 +471,12 @@ export function css_global_block_invalid_modifier(node) {
471471
}
472472

473473
/**
474-
* A `:global` selector at the very beginning cannot be modified by other selectors
474+
* A `:global` selector can only be modified if it is a descendant of other selectors
475475
* @param {null | number | NodeLike} node
476476
* @returns {never}
477477
*/
478478
export function css_global_block_invalid_modifier_start(node) {
479-
e(node, "css_global_block_invalid_modifier_start", "A `:global` selector at the very beginning cannot be modified by other selectors");
479+
e(node, "css_global_block_invalid_modifier_start", "A `:global` selector can only be modified if it is a descendant of other selectors");
480480
}
481481

482482
/**
@@ -525,12 +525,12 @@ export function css_selector_invalid(node) {
525525
}
526526

527527
/**
528-
* `:global(...)` must not be followed with a type selector
528+
* `:global(...)` must not be followed by a type selector
529529
* @param {null | number | NodeLike} node
530530
* @returns {never}
531531
*/
532532
export function css_type_selector_invalid_placement(node) {
533-
e(node, "css_type_selector_invalid_placement", "`:global(...)` must not be followed with a type selector");
533+
e(node, "css_type_selector_invalid_placement", "`:global(...)` must not be followed by a type selector");
534534
}
535535

536536
/**

0 commit comments

Comments
 (0)