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

fix: Carousel should support id property #44079

Merged
merged 1 commit into from Aug 7, 2023
Merged

Conversation

afc163
Copy link
Member

@afc163 afc163 commented Aug 7, 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 #44042

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English Fix Carousel do not support id prop.
🇨🇳 Chinese 修复 Carousel 不支持 id 属性的问题。

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

Add id prop to Carousel component and test it. This allows users to assign a unique identifier to the carousel element for accessibility or styling purposes.

🔍 Walkthrough

🤖 Generated by Copilot at 38cee1e

  • Add id prop to Carousel component to allow customizing the root element's id attribute (link, link, link)
  • Test that Carousel renders the id prop correctly on the div element in components/carousel/__tests__/index.test.tsx (link)

@stackblitz
Copy link

stackblitz bot commented Aug 7, 2023

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

@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2023

@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2023

size-limit report 📦

Path Size
./dist/antd.min.js 386.66 KB (+19 B 🔺)
./dist/antd-with-locales.min.js 445.79 KB (+13 B 🔺)

@argos-ci
Copy link

argos-ci bot commented Aug 7, 2023

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No change detected - Aug 7, 2023, 9:11 AM

@codecov
Copy link

codecov bot commented Aug 7, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (c583f9a) 100.00% compared to head (38cee1e) 100.00%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master    #44079   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          658       658           
  Lines        11186     11186           
  Branches      3029      3029           
=========================================
  Hits         11186     11186           
Files Changed Coverage Δ
components/carousel/index.tsx 100.00% <ø> (ø)

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

@MadCcc MadCcc merged commit c5a1ee8 into master Aug 7, 2023
95 checks passed
@MadCcc MadCcc deleted the fix/Carousel-id-prop branch August 7, 2023 11:57
@PeachScript PeachScript mentioned this pull request Aug 11, 2023
20 tasks
@coderwhy0717
Copy link

走马灯没有设置初始化值(index)吗? 只要一更新就初始化值0了 可操作性不是很好

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.

Carousel component does not support adding an id
3 participants