Web Runtime 0.3.0
Release notes for Web Runtime 0.3.0.
2 changes — 1 feature, 1 breaking change
Minor Changes
-
#81
4f6615bThanks @dm-balakin! - Breaking:pressable()'s andPressable'sonPressandonLongPressmay now receive anAccessibilityActionEvent(assistive technology'sactivateandlongpress) besides pointer and keyboard events.Accessibility semantics owned by Soundor. Components take React Native's accessibility props (
accessible,accessibilityLabel,accessibilityHint,accessibilityRole— includingdialog—accessibilityState,accessibilityValuewith fractional values,accessibilityActions,onAccessibilityAction).Pressableis a button by default, labelled by its text, offeringactivateand reflectingdisabled;Modalis a modal dialog (accessibilityLabel), and overlays opened from inside an overlay belong to it.soundor:uinodes gainaccessibility,accessibilityParentand theaccessibilityactionevent (AccessibilityActionEvent). The JUCE runtime's native core builds a platform-neutral semantic tree from the view (a11y::SurfaceSemantics: stable ids, incremental updates, modal scoping, implicit labels, safe action routing) for platform adapters to present; the web runtime checks the same properties. -
#83
4d0f1d4Thanks @dm-balakin! - Soundor's accessibility semantics as ARIA in the browser, on the elements that already draw the nodes. Roles, labels (explicit, or the text inside a button-like element), hints, states and range values become ARIA attributes; text inputs and images keep their native semantics. A modal is anaria-modaldialog with everything outside itaria-hidden, nested modals supersede each other, and a portal opened from a modal is owned by it (aria-owns). A screen reader's activation (a click with no pointer) presses aPressableonce, through theactivateaccessibility action.