From 7cac8fbe285fce4579ea631e6382025dbbde64aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Wed, 14 Dec 2022 11:55:03 +0800 Subject: [PATCH 1/4] chore: bump rc-select --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a2beee757f31..1be3a9cb9c15 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,7 @@ "copy-to-clipboard": "^3.2.0", "dayjs": "^1.11.1", "lodash": "^4.17.21", - "rc-cascader": "~3.7.0", + "rc-cascader": "~3.8.0", "rc-checkbox": "~2.3.0", "rc-collapse": "~3.4.2", "rc-dialog": "~9.0.2", @@ -140,7 +140,7 @@ "rc-rate": "~2.9.0", "rc-resize-observer": "^1.2.0", "rc-segmented": "~2.1.0", - "rc-select": "~14.1.13", + "rc-select": "~14.2.0", "rc-slider": "~10.0.0", "rc-steps": "~6.0.0-alpha.2", "rc-switch": "~4.0.0", @@ -149,7 +149,7 @@ "rc-textarea": "~0.4.5", "rc-tooltip": "~5.2.0", "rc-tree": "~5.7.0", - "rc-tree-select": "~5.5.4", + "rc-tree-select": "~5.6.0", "rc-trigger": "^5.2.10", "rc-upload": "~4.3.0", "rc-util": "^5.25.2", From abcf71e588d5a5ca81c41d7a67f80ea56dc3ddb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Wed, 14 Dec 2022 12:00:05 +0800 Subject: [PATCH 2/4] docs: update doc --- components/select/index.en-US.md | 2 ++ components/select/index.zh-CN.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index 63fa734dc786..98ceff222a49 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -177,3 +177,5 @@ Note: `listItemHeight` and `listHeight` are internal props. Please only modify w ### Why a11y test report missing `aria-` props? Select only create a11y auxiliary node when operating on. Please open Select and retry. For `aria-label` & `aria-labelledby` miss warning, please add related prop to Select with your own requirement. + +Default virtual scrolling will create a mock element to simulate an accessible binding. If a screen reader needs to fully access the entire list, you can set `virtual={false}` to disable virtual scrolling and the accessibility option will be bound to the actual element. diff --git a/components/select/index.zh-CN.md b/components/select/index.zh-CN.md index ae7e3155eff2..be818d58598c 100644 --- a/components/select/index.zh-CN.md +++ b/components/select/index.zh-CN.md @@ -178,3 +178,5 @@ Select 当失去焦点时会关闭下拉框,如果你可以通过阻止默认 ### 为何无障碍测试会报缺失 `aria-` 属性? Select 无障碍辅助元素仅在弹窗展开时创建,因而当你在进行无障碍检测时请先打开下拉后再进行测试。对于 `aria-label` 与 `aria-labelledby` 属性缺失警告,请自行为 Select 组件添加相应无障碍属性。 + +Select 虚拟滚动会模拟无障碍绑定元素。如果需要读屏器完整获取全部列表,你可以设置 `virtual={false}` 关闭虚拟滚动,无障碍选项将会绑定到真实元素上。 From 64e7d4ae11b8b61ff479aa2713ec93d9372fae7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Wed, 14 Dec 2022 15:37:08 +0800 Subject: [PATCH 3/4] test: Update snapshot --- .../__snapshots__/demo-extend.test.ts.snap | 192 ++++++------------ 1 file changed, 60 insertions(+), 132 deletions(-) diff --git a/components/table/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/table/__tests__/__snapshots__/demo-extend.test.ts.snap index ca17e1a3ccf9..07ad5e72d58e 100644 --- a/components/table/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/table/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -5676,28 +5676,6 @@ exports[`renders ./components/table/demo/edit-row.tsx extend context correctly 1 style="opacity:0" >
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
Date: Wed, 14 Dec 2022 16:59:57 +0800 Subject: [PATCH 4/4] test: Update snapshot --- .../__snapshots__/demo-extend.test.ts.snap | 110 +++-- .../__snapshots__/components.test.tsx.snap | 23 +- .../__snapshots__/pagination.test.tsx.snap | 32 +- .../__snapshots__/demo-extend.test.ts.snap | 416 ++++++------------ .../__snapshots__/demo-extend.test.ts.snap | 30 +- 5 files changed, 220 insertions(+), 391 deletions(-) diff --git a/components/calendar/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/calendar/__tests__/__snapshots__/demo-extend.test.ts.snap index cff7441f97d2..8d312f123af2 100644 --- a/components/calendar/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/calendar/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -3277,26 +3277,6 @@ exports[`renders ./components/calendar/demo/customize-header.tsx extend context style="opacity:0" >
-
-
- 2006 -
-
- 2007 -
-
-
-
- 0 -
-
- 1 -
-
-
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- 10 -
-
- 20 -
-
-
-
- HangZhou -
-
- NingBo -
-