Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Drawer support aria in closable #47543

Merged
merged 13 commits into from Feb 28, 2024
Merged

Conversation

kiner-tang
Copy link
Member

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Workflow
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English Drawer support aria-* in closable
🇨🇳 Chinese 抽屉组件支持在 closable 中配置 aria-*

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

Copy link

stackblitz bot commented Feb 22, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
Contributor

github-actions bot commented Feb 22, 2024

👁 Visual Regression Report for PR #47543 Passed ✅

🎯 Target branch: feature (271daaf)
📖 View Full Report ↗︎

🎊 Congrats! No visual-regression diff found.

Copy link
Contributor

github-actions bot commented Feb 22, 2024

Preview is ready

Copy link
Contributor

github-actions bot commented Feb 22, 2024

size-limit report 📦

Path Size
./dist/antd.min.js 334.03 KB (+236 B 🔺)
./dist/antd-with-locales.min.js 379.76 KB (+101 B 🔺)

Copy link

codesandbox-ci bot commented Feb 22, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link

codecov bot commented Feb 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (6c824b7) to head (20138eb).
Report is 22 commits behind head on feature.

Additional details and impacted files
@@            Coverage Diff             @@
##           feature    #47543    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          734       734            
  Lines        12617     12933   +316     
  Branches      3307      3467   +160     
==========================================
+ Hits         12617     12933   +316     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kiner-tang
Copy link
Member Author

@zombieJ 大佬有空瞅瞅不

Copy link

socket-security bot commented Feb 27, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/chalk@4.1.2 None +1 42.1 kB sindresorhus
npm/cheerio@1.0.0-rc.12 None 0 558 kB feedic
npm/circular-dependency-plugin@5.2.2 None 0 10.5 kB theron
npm/classnames@2.5.1 None 0 23.6 kB jedwatson
npm/copy-to-clipboard@3.3.3 None 0 15.1 kB sudodoki
npm/cross-env@7.0.3 environment 0 29.1 kB kentcdodds
npm/cross-fetch@4.0.0 network +1 195 kB lquixada
npm/crypto@1.0.1 None 0 778 B ehsalazar
npm/dayjs@1.11.10 None 0 664 kB iamkun
npm/dekko@0.2.1 filesystem 0 8.91 kB benjycui
npm/dumi-plugin-color-chunk@1.1.0 Transitive: environment, network +23 13.6 MB wxh16144
npm/dumi@2.3.0-beta.7 Transitive: environment, network +20 13.2 MB peachscript
npm/esbuild-loader@4.0.3 None 0 34.1 kB hirokiosame
npm/eslint-config-airbnb@19.0.4 Transitive: environment, filesystem, unsafe +10 6.19 MB ljharb
npm/eslint-config-prettier@9.1.0 Transitive: environment, filesystem +4 3.1 MB lydell
npm/eslint-import-resolver-typescript@3.6.1 Transitive: environment, filesystem, unsafe +7 4.49 MB jounqin
npm/eslint-plugin-compat@4.2.0 filesystem Transitive: environment +6 3.15 MB amilajack
npm/eslint-plugin-import@2.29.1 filesystem, unsafe Transitive: environment +5 4.35 MB ljharb
npm/eslint-plugin-jest@27.9.0 filesystem Transitive: environment, network, shell +9 11.7 MB simenb
npm/eslint-plugin-jsx-a11y@6.8.0 Transitive: environment, filesystem +4 3.82 MB ljharb
npm/eslint-plugin-lodash@7.4.0 filesystem Transitive: environment +5 4.82 MB idok
npm/eslint-plugin-markdown@3.0.1 Transitive: environment, filesystem +4 3.11 MB eslintbot
npm/eslint-plugin-react-hooks@4.6.0 environment Transitive: filesystem +4 3.2 MB gnoff
npm/eslint-plugin-react@7.33.2 filesystem Transitive: environment +5 3.98 MB ljharb
npm/eslint-plugin-unicorn@51.0.1 Transitive: environment, filesystem +5 3.76 MB sindresorhus
npm/eslint@8.57.0 environment, filesystem +3 3.08 MB eslintbot
npm/fast-glob@3.3.2 filesystem 0 96.7 kB mrmlnc
npm/fetch-jsonp@1.3.0 None 0 12.4 kB camsong
npm/fs-extra@11.2.0 None +1 59.6 kB ryanzim
npm/gh-pages@6.1.1 filesystem, shell +2 99.5 kB tschaub
npm/glob@10.3.10 Transitive: environment +1 888 kB isaacs
npm/html2sketch@1.0.2 network 0 1.87 MB arvinxx
npm/http-server@14.1.1 environment, filesystem, network +3 221 kB thornjad
npm/husky@9.0.11 environment, filesystem, shell 0 3.61 kB typicode
npm/identity-obj-proxy@3.0.0 None 0 8.38 kB keyanzhang
npm/immer@10.0.3 environment 0 620 kB mweststrate
npm/inquirer@9.2.15 None +4 1.55 MB danielchatfield, mischah, ruyadorno, ...1 more
npm/is-ci@3.0.1 None 0 3.81 kB sibiraj-s
npm/isomorphic-fetch@3.0.0 Transitive: network +1 169 kB mattandrews
npm/jest-axe@8.0.0 None +2 63.1 kB nickcolley
npm/jest-canvas-mock@2.5.2 None 0 112 kB atool
npm/jest-environment-jsdom@29.7.0 Transitive: eval, filesystem, network, shell, unsafe +3 7.14 MB simenb
npm/jest-environment-node@29.7.0 unsafe +1 4.01 MB simenb
npm/jest-image-snapshot@6.4.0 environment, filesystem, shell Transitive: network +8 7.9 MB amexopensource
npm/jest-puppeteer@10.0.1 None +1 335 kB neoziro
npm/jest@29.7.0 Transitive: environment, filesystem, network, shell +2 5.7 MB simenb
npm/jquery@3.7.1 None 0 1.25 MB timmywil
npm/jsdom@24.0.0 eval, filesystem, network, shell, unsafe 0 3.11 MB domenic
npm/jsonml-to-react-element@1.1.11 Transitive: eval, filesystem, network, shell, unsafe +2 3.16 MB benjycui
npm/jsonml.js@0.1.0 Transitive: eval, filesystem, network, shell, unsafe +1 3.14 MB benjycui
npm/lint-staged@15.2.2 Transitive: environment, filesystem, shell +2 340 kB okonet
npm/lodash@4.17.21 None 0 1.41 MB bnjmnt4n
npm/lunar-typescript@1.7.3 None 0 1.34 MB 6tail
npm/lz-string@1.5.0 None 0 176 kB pieroxy
npm/minimist@1.2.8 None 0 54.5 kB ljharb
npm/mockdate@3.0.5 None 0 13.8 kB boblauer
npm/node-fetch@3.3.2 network 0 107 kB node-fetch-bot
npm/node-notifier@10.0.1 environment, filesystem, network, shell +1 5.69 MB mikaelb
npm/nprogress@0.2.0 None 0 31.8 kB rstacruz
npm/open@10.0.4 environment 0 48.5 kB sindresorhus
npm/pixelmatch@5.3.0 None +1 666 kB mourner
npm/pngjs@7.0.0 None 0 650 kB lukeapage
npm/prettier-plugin-jsdoc@1.3.0 Transitive: environment, filesystem, unsafe +1 8.62 MB hosseinmdeveloper
npm/prettier@3.2.5 environment, filesystem, unsafe 0 8.39 MB prettier-bot
npm/pretty-format@29.7.0 None 0 60.7 kB simenb
npm/prismjs@1.29.0 None 0 2.05 MB rundevelopment
npm/progress@2.0.3 None 0 15.5 kB turbopope
npm/puppeteer@22.3.0 None 0 331 kB google-wombot, mathias
npm/qrcode.react@3.1.0 Transitive: environment +1 388 kB zpao
npm/qs@6.11.2 None 0 241 kB ljharb
npm/rc-cascader@3.21.2 environment +11 6.45 MB zombiej
npm/rc-checkbox@3.1.0 Transitive: environment +5 5.12 MB afc163
npm/rc-collapse@3.7.2 Transitive: environment +6 5.26 MB madccc
npm/rc-dialog@9.3.4 environment +6 5.28 MB afc163
npm/rc-drawer@7.1.0 environment +6 5.26 MB afc163
npm/rc-dropdown@4.1.0 Transitive: environment +8 5.47 MB madccc
npm/rc-field-form@1.41.0 environment +4 5.36 MB zombiej
npm/rc-footer@0.6.8 Transitive: environment +3 4.87 MB afc163
npm/rc-image@7.5.1 Transitive: environment +7 5.44 MB zombiej
npm/rc-input-number@9.0.0 Transitive: environment +6 5.25 MB madccc
npm/rc-input@1.4.3 Transitive: environment +5 5.17 MB madccc
npm/rc-mentions@2.10.1 environment +11 5.9 MB madccc
npm/rc-menu@9.12.4 environment +8 5.69 MB madccc
npm/rc-motion@2.9.0 Transitive: environment +5 5.21 MB madccc
npm/rc-notification@5.3.0 environment +6 5.29 MB madccc
npm/rc-pagination@4.0.4 environment +5 5.27 MB madccc
npm/rc-picker@4.1.5 Transitive: environment +9 6.98 MB 07akioni, afc163, lixuan, ...3 more
npm/rc-progress@3.5.1 environment +5 5.15 MB zombiej
npm/rc-rate@2.12.0 Transitive: environment +5 5.14 MB afc163
npm/rc-resize-observer@1.4.0 environment +5 5.13 MB zombiej
npm/rc-segmented@2.3.0 environment +6 5.24 MB afc163
npm/rc-select@14.11.0 environment +9 5.89 MB madccc
npm/rc-slider@10.5.0 environment +5 5.25 MB madccc
npm/rc-steps@6.0.1 Transitive: environment +5 5.15 MB zombiej
npm/rc-switch@4.1.0 Transitive: environment +5 5.12 MB afc163
npm/rc-table@7.41.0 Transitive: environment +7 5.66 MB afc163, benjycui, dxq613, ...6 more
npm/rc-tabs@14.0.0 environment +10 5.9 MB afc163
npm/rc-textarea@1.6.3 environment +7 5.27 MB madccc
npm/rc-tooltip@6.1.3 Transitive: environment +8 5.48 MB afc163
npm/rc-tree-select@5.17.0 environment +11 6.42 MB zombiej
npm/rc-tree@5.8.5 environment +8 5.74 MB zombiej
npm/rc-tween-one@3.0.6 Transitive: environment +2 4.89 MB jljsj33
npm/rc-upload@4.5.2 Transitive: environment +5 5.16 MB zombiej
npm/rc-util@5.38.2 Transitive: environment +3 5.07 MB afc163, benjycui, dahong, ...6 more
npm/rc-virtual-list@3.11.4 environment +6 5.26 MB zombiej
npm/react-copy-to-clipboard@5.1.0 Transitive: environment +2 372 kB nkbt
npm/react-countup@6.5.0 Transitive: environment +1 350 kB mapkeji
npm/react-dom@18.2.0 environment +1 4.82 MB gnoff
npm/react-draggable@4.4.6 Transitive: environment +2 5.06 MB strml
npm/react-fast-marquee@1.6.4 Transitive: environment +2 4.86 MB justin-chu
npm/react-highlight-words@0.20.0 environment +1 1.92 MB sergei-startsev
npm/react-infinite-scroll-component@6.1.0 Transitive: environment +2 576 kB ankeetmaini
npm/react-intersection-observer@9.8.1 Transitive: environment +2 4.96 MB thebuilder
npm/react-resizable@3.0.5 Transitive: environment +3 5.18 MB strml
npm/react-router-dom@6.22.1 environment +2 5.7 MB mjackson
npm/react-sticky-box@2.0.5 Transitive: environment +1 334 kB danielberndt
npm/react@18.2.0 environment 0 316 kB gnoff
npm/regenerator-runtime@0.14.1 None 0 27.9 kB benjamn
npm/remark-cli@12.0.0 None +1 34.2 kB wooorm
npm/remark-gfm@4.0.0 None 0 21.4 kB wooorm
npm/remark-html@16.0.1 None 0 17 kB wooorm
npm/remark-lint-no-undefined-references@4.2.1 None 0 20.9 kB wooorm
npm/remark-lint@9.1.2 None 0 6.64 kB wooorm
npm/remark-preset-lint-recommended@6.1.3 None +2 38.5 kB wooorm
npm/remark@15.0.1 None 0 15.7 kB wooorm
npm/runes2@1.1.4 environment 0 120 kB bluelovers
npm/scroll-into-view-if-needed@3.1.0 None 0 44.8 kB stipsan
npm/sharp@0.33.2 environment +1 510 kB lovell
npm/simple-git@3.22.0 shell 0 887 kB steveukx
npm/size-limit@11.0.2 None 0 32 kB ai
npm/stylelint-config-rational-order@0.1.2 Transitive: environment, filesystem +2 1.74 MB constverum
npm/stylelint-config-standard@36.0.0 Transitive: environment, filesystem +2 1.51 MB ybiquitous
npm/stylelint-prettier@5.0.0 Transitive: environment, filesystem, unsafe +3 9.91 MB bpscott
npm/stylelint@16.2.1 environment Transitive: filesystem +1 1.5 MB ybiquitous
npm/sylvanas@0.6.1 filesystem Transitive: environment, unsafe +5 14.6 MB chenshuai2144
npm/throttle-debounce@5.0.0 None 0 83.1 kB niksy

View full report↗︎

Copy link

socket-security bot commented Feb 27, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

Ignoring: npm/fsevents@1.2.13, npm/sharp@0.33.2

View full report↗︎

Next steps

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

@kiner-tang
Copy link
Member Author

@SocketSecurity ignore npm/core-js@2.6.12

@kiner-tang
Copy link
Member Author

@SocketSecurity ignore npm/fsevents@1.2.13
@SocketSecurity ignore npm/sharp@0.33.2

@kiner-tang kiner-tang merged commit 1521661 into feature Feb 28, 2024
105 checks passed
@kiner-tang kiner-tang deleted the feat-aria-in-closable-drawer branch February 28, 2024 06:11
Copy link
Contributor

🎉 Thank you for your contribution! If you have not yet joined our DingTalk community group, please feel free to join us (when joining, please provide the link to this PR).

🎉 感谢您的贡献!如果您还没有加入钉钉社区群,请扫描下方二维码加入我们(加群时请提供此 PR 链接)。

@@ -361,4 +361,20 @@ describe('Drawer', () => {
expect(container1.outerHTML).toEqual(container2.outerHTML);
});
});
it('should support aria-* and closeIcon by closable', async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

async 好像是多余的

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tanzhenyun pushed a commit to DraculaPrince/mark15 that referenced this pull request Mar 29, 2024
* feat: drawer support aria in closable prop

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants