Skip to content

Conversation

thinkasany
Copy link
Member

@thinkasany thinkasany commented Dec 25, 2024

🤔 This is a ...

  • 🆕 New feature

close #50303

📝 Change Log

Language Changelog
🇺🇸 English feat: ConfigProvider support popconfirm
🇨🇳 Chinese feat: ConfigProvider 支持 popconfirm

Copy link

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

Copy link
Contributor

github-actions bot commented Dec 25, 2024

👁 Visual Regression Report for PR #52126 Failed ❌

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

Expected (Branch feature) Actual (Current PR) Diff
button-color-variant.dark.png button-color-variant.dark.png button-color-variant.dark.css-var.png button-color-variant.dark.css-var.png
button-debug-color-variant.compact.png button-debug-color-variant.compact.png button-debug-color-variant.compact.css-var.png button-debug-color-variant.compact.css-var.png
button-debug-color-variant.dark.png button-debug-color-variant.dark.png button-debug-color-variant.dark.css-var.png button-debug-color-variant.dark.css-var.png
button-debug-color-variant.default.png button-debug-color-variant.default.png button-debug-color-variant.default.css-var.png button-debug-color-variant.default.css-var.png
checkbox-custom-line-width.compact.png checkbox-custom-line-width.compact.png checkbox-custom-line-width.compact.css-var.png checkbox-custom-line-width.compact.css-var.png
checkbox-custom-line-width.dark.png checkbox-custom-line-width.dark.png checkbox-custom-line-width.dark.css-var.png checkbox-custom-line-width.dark.css-var.png
checkbox-custom-line-width.default.png checkbox-custom-line-width.default.png checkbox-custom-line-width.default.css-var.png checkbox-custom-line-width.default.css-var.png
checkbox-debug-line.compact.png checkbox-debug-line.compact.png checkbox-debug-line.compact.css-var.png checkbox-debug-line.compact.css-var.png

Warning

There are more diffs not shown in the table. Please check the Full Report for details.


Important

There are 34 diffs found in this PR: 🔄 34 changed.
Please check all items:

  • Checked all diffs in the full report
  • Visual diff is acceptable

Copy link
Contributor

github-actions bot commented Dec 25, 2024

Preview is ready

Copy link

Walkthrough

This pull request introduces a new feature to the ConfigProvider by adding support for Popconfirm. It includes changes to various components to replace deprecated properties with new ones, enhancing the styling and configuration capabilities of Popconfirm and related components.

Changes

Files Summary
.dumi/theme/builtins/ComponentTokenTable/index.tsx, .dumi/theme/slots/Header/index.tsx, components/avatar/tests/Avatar.test.tsx, components/avatar/group.tsx, components/color-picker/ColorPicker.tsx, components/input/demo/tooltip.tsx, components/select/demo/responsive.tsx, components/slider/index.tsx, components/table/tests/Table.sorter.test.tsx, components/tooltip/tests/tooltip.test.tsx Replaced deprecated overlayClassName and overlayStyle with classNames and styles for better styling control.
components/config-provider/context.ts, components/config-provider/index.tsx Added PopconfirmConfig type and integrated it into ConfigProvider for Popconfirm support.
components/config-provider/index.en-US.md, components/config-provider/index.zh-CN.md Updated documentation to include Popconfirm configuration details.
components/popconfirm/tests/index.test.tsx Added tests for custom styles and classNames in Popconfirm.
components/popconfirm/demo/_semantic.tsx Added a semantic demo for Popconfirm.
components/popconfirm/index.en-US.md, components/popconfirm/index.zh-CN.md Added semantic DOM section for Popconfirm documentation.
components/tooltip/index.tsx Updated deprecation warnings to reflect new property usage.

...restProps
} = props;

const { getPrefixCls } = React.useContext(ConfigContext);
const { getPrefixCls, popconfirm } = React.useContext(ConfigContext);

Choose a reason for hiding this comment

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

Ensure that the popconfirm context value is correctly provided and used within the component. If popconfirm is undefined, it might lead to runtime errors when accessing its properties. Consider adding a default value or a check before accessing popconfirm properties.

Copy link

pkg-pr-new bot commented Dec 25, 2024

Copy link

codecov bot commented Dec 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (ca1ab9b) to head (c0fad7a).
Report is 1 commits behind head on feature.

Additional details and impacted files
@@            Coverage Diff            @@
##           feature    #52126   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          763       763           
  Lines        13726     13727    +1     
  Branches      3585      3585           
=========================================
+ Hits         13726     13727    +1     

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

@thinkasany thinkasany changed the title feat: ConfigProvider support popcomfirm feat: ConfigProvider support popconfirm Dec 25, 2024
@zombieJ zombieJ merged commit 8b15b0f into ant-design:feature Dec 25, 2024
45 checks passed
@zombieJ zombieJ mentioned this pull request Jan 6, 2025
16 tasks
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