This differs from the keyboard nav plugin but I think it's correct for an
on-by-default world as it's very weird to encounter this toast on a touch
device with and not helpful for mouse usage (e.g. in MakeCode's context menu).
* chore: add additional logging to CI to catch circular deps and exit mocha on failure
* chore: fix blockly import
* chore: format
* chore: increase webdriver timeout to allow longer tests
* fix: stack overflow if a sound is missing
* chore: dont fail for any console errors
* chore: needs more timeout
* chore: run mocha in a subprocess
* chore: fix chromedriver cache issues
* chore: remove bad error condition
* fix: refactor custom input labels to simplify
* fix: handle bad field image config from block factory
* chore: remove stray log
* fix: fix move mode labels
* fix: dont use numbered inputs for dummy and end row inputs
* chore: fix test
* fix: Fix typo in unregisterWorkspace function name
* fix: Add deprecation warning for unregisterWorkpace function
* fix: Add renaming entry for unregisterWorkspace in version 13.0.0
* fix(typo): "." -> "," in renamings.json5
Co-authored-by: Maribeth Moffatt <mebottorff@gmail.com>
* fix(workspace): Correct typo in `unregisterWorkspace` method call
* chore: change v12 to v13
* chore: update import
---------
Co-authored-by: Woosuk Nam <me@suk.kr>
* chore: add legacy redirects from devsite
* chore: rename configure/web to just configure
* chore: remove youtube embeds because we are scared of cookies
* chore: fix some broken images
* chore: add accessibility section for extending a built-in field
* chore: add information about accessibility to the creating a custom field page
* chore(docs): better phrasing about getAriaValue
* feat: Announce usage hints to screenreaders on initial workspace focus
* fix: Improve robustness of tests
* fix: Fix merge
* fix: Don't announce screenreader usage on first focus of every workspace
* fix: Fix test
* feat: Add custom input labels to built in blocks
* feat: Add custom input labels to built in list blocks
* fix: replace 'command' with 'statement' in new translation docs
* fix: remove some labels
Reverts the storage mechanism introduced in #9611 (constructable
stylesheets via `adoptedStyleSheets`) while keeping the per-root
injection-site tracking that #9611 added for shadow-DOM support.
Motivations:
- Safari 15.4 compatibility. `new CSSStyleSheet()` and
`adoptedStyleSheets` require Safari 16.4+
- Cascade order. `adoptedStyleSheets` apply after `<style>`/`<link>`
elements in the document, so Blockly's defaults silently overrode
host stylesheets. Prepending a `<style>` to the head (or to the
shadow root) restores the pre-#9611 behavior where any author
stylesheet declared later wins on specificity ties.
Trade-offs:
- Per-shadow-root CSS text is duplicated rather than shared via a
single adopted sheet object. Negligible for typical use.
- `Css.register()` calls made after the first `inject()` no longer
reach already-injected roots (same as #9611's behavior); subsequent
`inject()` calls into other roots still pick them up. Web-component
consumers can legitimately register late, so this is preferred to
reinstating the pre-#9611 throw.
Fixes#9876
The controls_ifelse block was using the controls_if_tooltip dynamic
extension, which reads this.elseifCount_ and this.elseCount_ set by
the controls_if_mutator. Since controls_ifelse has no mutator, both
counts are undefined and the extension always returned TOOLTIP_1 (for
a simple if), instead of TOOLTIP_2 (for if/else).
The static tooltip already declared on the block was unreachable
because of a typo (BKYCONTROLS_IF_TOOLTIP_2 was missing the underscore
after BKY) and would have been overridden by the extension anyway.
Fix the message key typo and drop the extension so the static
TOOLTIP_2 string is displayed instead.
Fixes#9813
Signed-off-by: sheitabrk <44614193+sheitabrk@users.noreply.github.com>