Skip to content

Conversation

thinkasany
Copy link
Member

🤔 This is a ...

  • 🆕 New feature

🔗 Related Issues

wait for react-component/select#1128

📝 Change Log

Language Changelog
🇺🇸 English feat: ConfigProvider support classnames and styles for select
🇨🇳 Chinese feat: ConfigProvider support classnames and styles for select

Copy link

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

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

Copy link
Contributor

github-actions bot commented Feb 25, 2025

Preview is ready

Copy link
Contributor

github-actions bot commented Feb 25, 2025

👁 Visual Regression Report for PR #52948 Passed ✅

🎯 Target branch: next (ec3b479)
📖 View Full Report ↗︎
📖 Alternative Report ↗︎

🎊 Congrats! No visual-regression diff found.

Copy link

Walkthrough

This pull request introduces a new feature that enhances the ConfigProvider to support classnames and styles for the Select component. This allows for more flexible styling and customization of the select component's appearance.

Changes

Files Summary
components/config-provider/context.ts Updated SelectConfig to include classnames and styles from SelectProps.
components/select/demo/_semantic.tsx Added a new demo file showcasing the semantic DOM structure for the Select component.
components/select/index.en-US.md, components/select/index.zh-CN.md Updated documentation to include information about the semantic DOM.
components/select/index.tsx Enhanced SelectProps to support classnames and styles, added deprecation warnings for certain props, and updated the component to merge styles and classnames from context and props.

['popupClassName', 'classNames: {{ popup: ""}}'],
['dropdownStyle', '{{ popup: {}}}'],
].forEach(([deprecatedName, newName]) => {
warning.deprecated(!(deprecatedName in props), deprecatedName, newName);

Choose a reason for hiding this comment

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

The deprecation warning logic is implemented correctly, but ensure that the warning message is clear and provides guidance on how to transition to the new API. This is crucial for developers to adapt their code without confusion.

Copy link
Contributor

github-actions bot commented Feb 25, 2025

size-limit report 📦

Path Size
dist/antd.min.js 505.61 KB (+308 B 🔺)
dist/antd-with-locales.min.js 599.24 KB (+394 B 🔺)

Copy link

cloudflare-workers-and-pages bot commented Feb 25, 2025

Deploying ant-design with  Cloudflare Pages  Cloudflare Pages

Latest commit: 26164a9
Status: ✅  Deploy successful!
Preview URL: https://410aa7fb.ant-design.pages.dev
Branch Preview URL: https://cp-select.ant-design.pages.dev

View logs

@thinkasany thinkasany force-pushed the cp-select branch 2 times, most recently from 92597fc to 3dbd0e2 Compare February 28, 2025 10:43
Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

@thinkasany thinkasany force-pushed the cp-select branch 2 times, most recently from accf0f7 to e2e4c1e Compare March 13, 2025 07:34
Copy link

pkg-pr-new bot commented Mar 13, 2025

Copy link

codecov bot commented Mar 13, 2025

Bundle Report

Changes will decrease total bundle size by 7.78MB (-66.61%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
antd.min-array-push 3.9MB -7.78MB (-66.61%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: antd.min-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
antd-with-locales.min.js (New) 2.14MB 2.14MB 100.0% 🚀
antd.min.js (New) 1.76MB 1.76MB 100.0% 🚀
antd-with-locales.js (Deleted) -6.14MB 0 bytes -100.0% 🗑️
antd.js (Deleted) -5.54MB 0 bytes -100.0% 🗑️

Files in antd-with-locales.min.js:

  • ./components/config-provider/context.ts → Total Size: 1.51kB

Files in antd.min.js:

  • ./components/config-provider/context.ts → Total Size: 1.51kB

Copy link

codecov bot commented Mar 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (ec3b479) to head (26164a9).
Report is 1 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff            @@
##              next    #52948   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          773       773           
  Lines        13921     13929    +8     
  Branches      3650      3652    +2     
=========================================
+ Hits         13921     13929    +8     

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@zombieJ zombieJ merged commit 55e075f into next Mar 13, 2025
42 checks passed
@zombieJ zombieJ deleted the cp-select branch March 13, 2025 08:50
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.

2 participants