@colixsystems/widget-sdk 0.134.0 → 0.134.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -100,8 +100,11 @@ export function makeMarkdownLinkDialog(rn, Overlay) {
100
100
  {
101
101
  key,
102
102
  onPress: () => setMode(key),
103
- accessibilityRole: "button",
104
- accessibilityState: { selected: mode === key },
103
+ // RNW 0.21.2 drops the a11y state prop, so the chosen tab was
104
+ // legible only as a fill colour (sc-6350). role + aria-* announces
105
+ // on both hosts; aria-selected needs role="tab", not "button".
106
+ accessibilityRole: "tab",
107
+ "aria-selected": mode === key,
105
108
  testID: testID ? `${testID}-mode-${key}` : undefined,
106
109
  style: {
107
110
  paddingVertical: tokens.markerGap,
@@ -189,7 +192,10 @@ export function makeMarkdownLinkDialog(rn, Overlay) {
189
192
  canPickPage
190
193
  ? React.createElement(
191
194
  View,
192
- { style: { flexDirection: "row", marginBottom: tokens.blockGap } },
195
+ {
196
+ accessibilityRole: "tablist",
197
+ style: { flexDirection: "row", marginBottom: tokens.blockGap },
198
+ },
193
199
  tab("page", "A page in this app"),
194
200
  tab("url", "An external URL"),
195
201
  )
@@ -202,6 +208,7 @@ export function makeMarkdownLinkDialog(rn, Overlay) {
202
208
  React.createElement(
203
209
  ScrollView,
204
210
  {
211
+ accessibilityRole: "radiogroup",
205
212
  style: {
206
213
  maxHeight: PAGE_LIST_MAX_HEIGHT,
207
214
  borderWidth: 1,
@@ -216,8 +223,8 @@ export function makeMarkdownLinkDialog(rn, Overlay) {
216
223
  {
217
224
  key: page.id,
218
225
  onPress: () => setPageId(page.id),
219
- accessibilityRole: "button",
220
- accessibilityState: { selected: pageId === page.id },
226
+ accessibilityRole: "radio",
227
+ "aria-checked": pageId === page.id,
221
228
  style: {
222
229
  padding: tokens.markerGap,
223
230
  ...(pageId === page.id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colixsystems/widget-sdk",
3
- "version": "0.134.0",
3
+ "version": "0.134.1",
4
4
  "description": "Common widget interface for AppStudio. Implements WidgetManifest, WidgetContext, property schema, and helper hooks.",
5
5
  "homepage": "https://github.com/Colix-AB/AppStudio",
6
6
  "type": "module",