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: support closeIcon #44312

Merged
merged 3 commits into from Aug 21, 2023
Merged

feat: support closeIcon #44312

merged 3 commits into from Aug 21, 2023

Conversation

kiner-tang
Copy link
Member

@kiner-tang kiner-tang commented Aug 21, 2023

[中文版模板 / 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

close #44304

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English Tour support closeIcon to customize close icon
🇨🇳 Chinese 漫游组件支持通过 closeIcon 来自定义关闭按钮

☑️ 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

🚀 Summary

🤖 Generated by Copilot at 39ac6cd

This pull request adds a new feature to the Tour and TourStep components that allows users to customize the close icon for the tour guide. It also updates the documentation in English and Chinese, the dependency version of @rc-component/tour, and the test case for the Tour component.

🔍 Walkthrough

🤖 Generated by Copilot at 39ac6cd

  • Add closeIcon prop to Tour and TourStep components to allow customizing the close icon for the whole tour or each step (link, link, link, link, link, link, link)
  • Update @rc-component/tour dependency to version 1.9.0 to use the new feature in components/tour/panelRender.tsx (link)
  • Add test case for closeIcon prop in components/tour/__tests__/index.test.tsx to verify the correct rendering and behavior of the close icon (link)

@stackblitz
Copy link

stackblitz bot commented Aug 21, 2023

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

@github-actions
Copy link
Contributor

github-actions bot commented Aug 21, 2023

@github-actions
Copy link
Contributor

github-actions bot commented Aug 21, 2023

size-limit report 📦

Path Size
./dist/antd.min.js 389.74 KB (+113 B 🔺)
./dist/antd-with-locales.min.js 448.62 KB (+117 B 🔺)

@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (8ca7ab9) 100.00% compared to head (40d5454) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##           feature    #44312   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          663       663           
  Lines        11279     11285    +6     
  Branches      3046      3049    +3     
=========================================
+ Hits         11279     11285    +6     
Files Changed Coverage Δ
components/tour/panelRender.tsx 100.00% <100.00%> (ø)

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

@zombieJ zombieJ merged commit 8e7d02c into feature Aug 21, 2023
85 checks passed
@zombieJ zombieJ deleted the feat-tour-support-closeIcon branch August 21, 2023 09:02
@insertmike
Copy link

insertmike commented Sep 5, 2023

When is this going to be included in a release? @zombieJ @kiner-tang

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