From 9a34f2cad2001ba846b125ac936639a9a5705b90 Mon Sep 17 00:00:00 2001 From: aojunhao123 <1844749591@qq.com> Date: Thu, 18 Dec 2025 12:21:58 +0800 Subject: [PATCH] fix: remove duplicate radio role and optimize aria attributes --- package.json | 2 +- src/index.tsx | 8 +-- tests/__snapshots__/index.test.tsx.snap | 93 ++++--------------------- tsconfig.json | 4 +- 4 files changed, 18 insertions(+), 89 deletions(-) diff --git a/package.json b/package.json index 76eedd0..5cb069f 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ }, "devDependencies": { "@rc-component/father-plugin": "^1.0.1", - "@testing-library/jest-dom": "^5.16.5", + "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^14.2.1", "@testing-library/user-event": "^14.5.2", "@types/classnames": "^2.2.9", diff --git a/src/index.tsx b/src/index.tsx index 9a32cd3..4bf9ab1 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -131,12 +131,7 @@ const InternalSegmentedOption: React.FC<{ onKeyDown={onKeyDown} onKeyUp={onKeyUp} /> -