Skip to content

Releases: ant-design/ant-design

5.24.1

17 Feb 09:47
080f780
Compare
Choose a tag to compare
  • 🐞 Fix Button with color to be primary and variant to be text or link will not use correct color. #52812 @zombieJ
  • 💄 Fix Input.Group & Input.OTP style issues caused by undefined CSS variables. #52799 @afc163
  • 🐞 Fix DatePicker with long content prefix breaks the layout. #52776 @guoyunhe
  • 🐞 Fix Table title missing aria-label when sorting. #52772 @mellis481
  • 🐞 Fix Alert.ErrorBoundary type error when used as a JSX component with @types/react@18.x. #52766 @afc163
  • 💄 Fix Segmented shape not working with size. #52757 @yellowryan

  • 🐞 修复 Button 配置 colorprimary 并且 varianttextlink 时,没有取用正确的色板的问题。#52812 @zombieJ
  • 💄 修复 Input.Group 与 Input.OTP 由于 css 变量未定义导致样式异常的问题。#52799 @afc163
  • 🐞 修复 DatePicker 的 prefix 内容多时会换行的问题。#52776 @guoyunhe
  • 🐞 修复 Table 列标题在排序时丢失 aria-label 的问题。#52772 @mellis481
  • 🐞 修复 Alert.ErrorBoundary 在 @types/react@18.x 中无法作为 JSX 组件使用的类型错误问题。#52766 @afc163
  • 💄 修复 Segmented 设置 size 时,shape 不生效的问题。#52757 @yellowryan

5.24.0

11 Feb 08:33
938a8cf
Compare
Choose a tag to compare
  • 🆕 Notification support actions prop and deprecated btn prop. #52703 @thinkasany
  • 🆕 Carousel support show dot duration. #52672 @yellowryan
  • 🆕 Input.OTP support separator prop. #52668 @HaceraI
  • 🆕 Descriptions add labelColor component token. #52700 @guoyunhe
  • 🆕 Segmented supports shape="round". #52685 @afc163
  • 🆕 ConfigProvider support variant for Card. #52552 @thinkasany
  • 🆕 Progress/Step supports custom rounding with rounding prop. #52017 @yanghoxom
  • 🆕 Divider orientation support start and end. #52567 @li-jia-nan
  • 🆕 Add underlined to variant of Input, InputNumber, Mentions, Form, Select, Cascader, TreeSelect, DatePicker and TimePicker. #52546 @ustcfury
  • 🆕 ConfigProvider support global config of Modal centered . #52343 @guoyunhe
  • 🆕 Add label class name for Checkbox and Radio. #52322 @guoyunhe
  • 🐞 Fix Tooltip/Popover/Popconfirm/Dropdown misaligned popup positions with custom children in React 19. react-component/util#623 @zombieJ
  • 🐞 Fix DatePicker.RangePicker arrow position when popup auto adjust position. #52719 @zombieJ
  • 🐞 Update locale filterCheckall to filterCheckAll. #52517 @thinkasany
  • 🐞 Fix Form that scrollToField and scrollToFirstError cannot focus components of antd. #52726 @Wxh16144
  • 💄 Fix Button shadow color appearing awkward on dark backgrounds. #52701 @afc163
  • 💄 Fixed the unnatural animation transition effect of Segmented component in dark mode. #52708 @yellowryan
  • 💄 Separate style of Input and TextArea. #52570 @guoyunhe
  • 💄 Fix Input and Select style issue under css var mode. #52554 @li-jia-nan
  • ⌨️ Remove role="alert" from Form field error to improve screen reader experience. #52661 @mellis481
  • ⌨️ Improve accessibility by adding localized labels for empty table header and panel buttons. #52689 @aojunhao123
  • ⌨️ Improve Tabs accessibility by fixing error Certain ARIA roles must contain particular children. #52677 @afc163
  • ⌨️ Add screen reader support for Tooltip. #52293 @aojunhao123
  • TypeScript

  • 🆕 Notification 支持 actions 属性并废弃 btn 属性。#52703 @thinkasany
  • 🆕 Carousel 支持展示指示点进度。#52672 @yellowryan
  • 🆕 Input.OTP 支持 separator 属性。#52668 @HaceraI
  • 🆕 Descriptions 增加 labelColor 组件 token。#52700 @guoyunhe
  • 🆕 Segmented 支持 shape="round" 的胶囊形状的样式。#52685 @afc163
  • 🆕 ConfigProvider 支持 Card 组件的 variant 配置。#52552 @thinkasany
  • 🆕 Progress/Step 支持使用 rounding 属性自定义取整方法。#52017 @yanghoxom
  • 🆕 Divider 的 orientation 属性支持 startend.#52567 @li-jia-nan
  • 🆕 为 Input、InputNumber、Mentions、Form、Select、Cascader、TreeSelect、DatePicker、TimePicker 组件的 variant 添加 underlined 属性。#52546 @ustcfury
  • 🆕 ConfigProvider 支持 Modal centered 全局配置。#52343 @guoyunhe
  • 🆕 为 Checkbox 和 Radio 增加 label 类名。#52322 @guoyunhe
  • 🐞 修复 Tooltip/Popover/Popconfirm/Dropdown 在 React 19 下 children 为自定义组件时弹层位置错乱的问题。react-component/util#623 @zombieJ
  • 🐞 修复 DatePicker.RangePicker 弹出窗体自动调整位置时,面板的箭头位置不正确的问题。#52719 @zombieJ
  • 🐞 修正 locale 中 filterCheckallfilterCheckAll#52517 @thinkasany
  • 🐞 修复 Form scrollToFieldscrollToFirstError 无法聚焦 antd 组件的问题。#52726 @Wxh16144
  • 💄 修复 Button 预设值按钮的阴影色在暗色背景下显示突兀的问题。#52701 @afc163
  • 💄 修复 Segmented 组件在暗黑模式下的动画过渡效果不自然的问题。#52708 @yellowryan
  • 💄 拆分 Input 和 TextArea 样式。#52570 @guoyunhe
  • 💄 修复 Input 和 Select 在 css var 模式下的样式问题。#52554 @li-jia-nan
  • ⌨️ Form field error 移除 role="alert" 以提升可访问性。#52661 @mellis481
  • ⌨️ 优化无障碍体验,为空表头和面板按钮添加本地化标签。#52689 @aojunhao123
  • ⌨️ 优化 Tabs 组件的可访问性,修复 Certain ARIA roles must contain particular children 的报错。#52677 @afc163
  • ⌨️ 为 Tooltip 添加读屏器支持。#52293 @aojunhao123
  • TypeScript

5.23.4

05 Feb 12:43
fc5198a
Compare
Choose a tag to compare

First release in the Year of the Snake, wishing you a prosperous start! 🐍

  • 🐞 Fixed Pagination accessibility issue by supplementing missing ARIA attributes support. #52616 @aojunhao123
  • 🐞 Added Input.TextArea component support in Space.Compact. #52639 @Can-Chen
  • 🐞 Fixed Menu with theme="dark" and mode="horizontal" identical text/background color issue. #52617 @afc163
  • 🇦🇪 Add Tour Arabic translation. #52642 @Sagie501
  • 🇮🇱 Add Tour Hebrew translation. #52641 @Sagie501

蛇年第一个版本,开工大吉!🐍

  • 🐞 修复 Pagination 可访问性问题,补充缺失的 ARIA 属性支持。#52616 @aojunhao123
  • 🐞 Space.Compact 支持 Input.Textarea 组件。#52639 @Can-Chen
  • 🐞 修复 Menu theme="dark" 时水平菜单的文字色和背景色同色的问题。#52617 @afc163
  • 🇪🇬 Tour 增加阿拉伯文 (埃及) 的翻译。 #52642 @Sagie501
  • 🇮🇱 Tour 增加希伯来语(以色列)的国际化翻译。#52641 @Sagie501

5.23.3

28 Jan 06:33
2de4cb2
Compare
Choose a tag to compare

Last version of the Dragon Year, Happy Chinese New Year! 🐲

  • ⌨️ MISC: Add accessibility tests for all component demos to ensure compliance with accessibility standards. Optimize accessibility support for some components, improving compatibility with screen readers and keyboard operations. #51372 @aojunhao123
  • 🐞 MISC: Fix importing antd/dist/reset.css file issue. #52559 @CaptainVolcom
  • 🐞 Fix Button throwing error when loading is null. #52508 @li-jia-nan
  • 🐞 Fix Table last row border color transition issue. #52549 @DDDDD12138
  • 💄 Fix Cascader checkbox cursor style in disabled state. #52539 @aojunhao123
  • 💄 Fix ConfigProvider not correctly modifying icon style priority when StyleProvider configures layer. #52533 @zombieJ
  • 🐞 Fix Layout sidebar toggle button style missing in non-cssVar mode. #52537 @afc163
  • 🐞 Fix Tree checkbox cursor style in disabled state. #52525 @aojunhao123
  • notification
    • 🐞 Fix notification useNotification closeIcon configuration not working. #52516 @typenoob
    • 🐞 Fix notification component display flicker issue under App component. #52499 @afc163
  • RTL

龙年最后一版,祝各位新春愉快!🐲

  • ⌨️ MISC: 为所有组件的示例添加了可访问性测试,确保符合无障碍标准。并优化了部分组件的可访问性支持,改进了对屏幕阅读器和键盘操作的兼容性。#51372 @aojunhao123
  • 🐞 MISC: 修复导入 antd/dist/reset.css 文件的问题。#52559 @CaptainVolcom
  • 🐞 修复 Button loadingnull 时抛错的问题。#52508 @li-jia-nan
  • 🐞 修复 Table 最后一行边框颜色过渡问题。#52549 @DDDDD12138
  • 💄 修复 Cascader 组件禁用状态下复选框的鼠标指针样式问题。#52539 @aojunhao123
  • 💄 修复 ConfigProvider 在 StyleProvider 配置 layer 时不会正确修改图标对应样式优先级的问题。#52533 @zombieJ
  • 🐞 修复 Layout 切换侧边栏按钮在非 cssVar 模式下样式丢失的问题。. #52537 @afc163
  • 🐞 修复 Tree 组件禁用状态下复选框的鼠标指针样式问题。#52525 @aojunhao123
  • notification
    • 🐞 修复 notification useNotificationcloseIcon 配置无效的问题。#52516 @typenoob
    • 🐞 修复 notification 组件在 App 组件下的显示闪烁问题。#52499 @afc163
  • RTL
    • 🐞 修复 Splitter 在 rtl 模式下折叠行为异常的问题。#52501 @aojunhao123
    • 💄 修复 Spin 在 rtl 模式下的样式问题。#52538 @afc163

5.23.2

20 Jan 09:44
89bac66
Compare
Choose a tag to compare
  • 🐞 Fix Space.Compact throwing Should not use more than one & in a selector warning. #52489
  • 💄 Fix the Layout switching sidebar button style was lost. #52477
  • 💄 Fix the scroll bar height is not 0 when the first row of the virtual scroll Table is collapsed. #52447 @LeeSSHH
  • 💄 Fix the last item in Descriptions did not correctly fill the remaining space. #52410 @anyuxuan
  • 💄 Fix extra margin for the last item in Radio. #52433
  • 💄 Fix the Input/Mentions clear button padding was incorrect. #52407 @ustcfury
  • 💄 Fix rounded corners of addonAfter in Input compact mode. #52490 @DDDDD12138
  • 💄 Fix Menu.Item links were still clickable and lacked disabled styles when in disabled state. #52402 @aojunhao123
  • TypeScript
    • 🤖 MISC: Optimize PurePanel to use React.ComponentType type. #52480
    • 🤖 Fix missing token type for Skeleton and Rate. #52406 @coding-ice

  • 🐞 修复 Space.Compact 抛出 Should not use more than one & in a selector 警告信息的问题。#52489
  • 💄 修复 Layout 切换侧边栏按钮样式丢失的问题。#52477
  • 💄 修复 Table 收起虚拟滚动表格第一行时滚动条高度不为 0 的问题。#52447 @LeeSSHH
  • 💄 修复 Descriptions 最后一项未正确填充满剩余空间的问题。#52410 @anyuxuan
  • 💄 修复 Radio.Group 最后一项多余 margin 的问题。#52433
  • 💄 修复 Input/Mentions 清除按钮 padding 不正确的问题。#52407 @ustcfury
  • 💄 修复 Input 紧凑模式中 addonAfter 的圆角问题。#52490 @DDDDD12138
  • 💄 修复 Menu.Item 在禁用状态下链接仍可点击且缺少禁用样式的问题。#52402 @aojunhao123
  • TypeScript
    • 🤖 MISC: 优化 PurePanel 使用 React.ComponentType 类型。#52480
    • 🤖 修复 Skeleton 和 Rate 缺失的 token 类型。#52406 @coding-ice

5.23.1

13 Jan 09:50
50254b1
Compare
Choose a tag to compare
  • 🆕 Add Tree leaf node className for differentiate node type. #52274 @EmilyyyLiu
  • 🐞 Fix DatePicker switch buttons is not hidden when superPrevIcon/superNextIcon/prevIcon/nextIcon is null. #52327 @afc163
  • 🐞 Fix Select throws error not a valid selector in Jest tests. #51844 @renovate
  • 🐞 Fix Layout.Sider under ConfigProvider directly, the theme not working. #52302 @zombieJ
  • 🐞 Fix Splitter lost previous state when re-expanding. #52222 @jjlstruggle
  • 🐞 Fix Table unexpected row selections when set checkStrictly to false in tree mode. #52338 @LeeSSHH
  • Button
    • 🐞 Fix Button alignment and icon centering by adjusting the icon size for icon-only Buttons. #52353 @afc163
    • 💄 Fix Button missing box-shadow style. #52304 @zombieJ
  • RTL

  • 🆕 新增 Tree 组件叶子节点的 className 用于区分节点类型。#52274 @EmilyyyLiu
  • 🐞 修复 DatePicker superPrevIcon/superNextIcon/prevIcon/nextIcon 设置为 null 时切换按钮依旧存在的问题。#52327 @afc163
  • 🐞 修复 Select 组件在 jest 测试中报错 not a valid selector 的问题。#51844 @renovate
  • 🐞 修复 Layout.Sider 直接嵌套在 ConfigProvider 下时,theme 配置无效的问题。#52302 @zombieJ
  • 🐞 修复 Splitter 二次展开时丢失上一次状态的问题。#52222 @jjlstruggle
  • 🐞 修复 Table 树形展示且设置 checkStrictly 为 false 时,某些行被错误选中的问题。#52338 @LeeSSHH
  • Button
    • 🐞 调整 Button 纯图标的大小从而修复按钮对齐和图标居中问题。#52353 @afc163
    • 💄 修复 Button 丢失阴影样式的问题。#52304 @zombieJ
  • RTL

5.23.0

06 Jan 08:55
Compare
Choose a tag to compare
  • 🔥 TreeSelect support maxCount to limit the maximum number of selections. #51759 @aojunhao123
  • 🔥 Modal width support responsive size. #51653 @zombieJ
  • 🔥 Splitter support lazy mode. #51557 @OysterD3
  • 🔥 Button color support full color palette. #51550 @OysterD3
  • Button Colors
  • 🆕 Button support loadingIcon to customize loading icon. #51758 @zhangchao-wooc
  • Menu
    • 🐞 Fix Menu extra font size and vertical align issue. #52217 @guoyunhe
    • 🆕 Menu add token subMenuItemSelectedColor to resolve submenu title color being overrided by itemSelectedColor. #52182 @afc163
  • 🆕 Semantic Props
    • 🆕 ConfigProvider support Empty semantic props classNames and styles. #52208 @thinkasany
    • 🆕 ConfigProvider support Popconfirm semantic props classNames and styles. #52126 @thinkasany
    • 🆕 ConfigProvider support Popover semantic props classNames and styles. #52110 @thinkasany
    • 🆕 ConfigProvider support Tooltip semantic props classNames and styles. #51872 @thinkasany
    • 🆕 ConfigProvider support Descriptions semantic props classNames and styles. #52120 @thinkasany
    • 🆕 ConfigProvider support Slider semantic props classNames and styles. #52185 @thinkasany
  • 🆕 Transfer support showSearch config defaultValue & placeholder. #52125 @EmilyyyLiu
  • 🆕 Calendar now supports showWeek prop. #52072 @afc163
  • 🆕 Mentions support onPopupScroll props. #51858 @OysterD3
  • 🆕 Card support bodyPaddingSM, headerPaddingSM, bodyPadding, headerPadding component token. #51762 @thinkasany
  • 🆕 ColorPicker presets support key prop. #51794 @li-jia-nan
  • 🆕 Cascader support optionSelectedColor token. #51769 @thinkasany
  • Tree
    • 🛠 Refactor Tree part code to Function Component for React 19 perf preparing. #52209 @li-jia-nan
    • 💄 Optimize Tree disabled & selected node display style. #52173 @EmilyyyLiu
  • 🐞 Fix Slider crash when tipFormatter is undefined. #52184 @thinkasany
  • 🐞 Fix Layout.Sider trigger style not correct. 46a8eff @Wxh16144
  • Table
    • 🐞 Fix Table fixed:right is not working in expandable. #52176 @afc163
    • 🐞 Fix Table sticky scrollbar not working in rtl direction. #52176 @afc163
  • 💄 Optimize Flex to always reset margin & padding for customize component. #52170 @li-jia-nan
  • 🐞 Fix DatePicker.RangePicker needConfirm sometime can switch panel without confirm. #52102 @Zyf665
  • 💄 Optimize Collapse focus styles and items border radius. #52086 @aojunhao123
  • ⌨️ Add Radio.Group default name prop to improve a11y. #52076 @aojunhao123
  • ⌨️ Input.Search add type=search by default. #52083 @Kaikiat1126
  • ⌨️ Improve Tabs focus style for keyboard operation. #52002 @aojunhao123
  • Segmented
  • 📦 MISC: Reduce bundle size by replacing @ctrl/tinycolor with @ant-design/fast-color. #52190 #52157 @aojunhao123
  • ⌨️ Adjust Input, InputNumber, Mentions, Textarea clear icon from span to button to improve a11y. #52180 @li-jia-nan
  • 🐞 MISC: Fix build error when using React 19. #52168 @zombieJ
  • TypeScript

  • 🔥 TreeSelect 新增 maxCount 属性以限制最大选择数量。#51759 @aojunhao123
  • 🔥 Modal width 支持响应式尺寸。#51653 @zombieJ
  • 🔥 Splitter 增加 lazy 模式。#51557 @OysterD3
  • 🔥 Button color 属性支持完整色板。#51550 @OysterD3
  • Button Colors
  • 🆕 Button 组件新增 loadingIcon 以自定义加载图标。#51758 @zhangchao-wooc
  • Menu
    • 🆕 Menu 新增 token subMenuItemSelectedColor,避免 itemSelectedColor 覆盖子菜单标题样式。#52182 @afc163
    • 🐞 修复 Menu extra 字体大小和垂直居中对齐问题。#52217 @guoyunhe
  • 🆕 语义化
    • 🆕 ConfigProvider 支持 Empty 组件语义化 classNamesstyles#52208 @thinkasany
    • 🆕 ConfigProvider 支持 Slider 组件语义化 classNamesstyles#52185 @thinkasany
    • 🆕 ConfigProvider 支持 Popconfirm 组件语义化 classNamesstyles#52126 @thinkasany
    • 🆕 ConfigProvider 支持 Popover 组件语义化 classNamesstyles#52110 @thinkasany
    • 🆕 ConfigProvider 支持 Tooltip 组件语义化 classNamesstyles#51872 @thinkasany
    • 🆕 ConfigProvider 支持 Descriptions 组件语义化 classNamesstyles#52120 @thinkasany
  • Tree
    • 🛠 重构 Tree 部分代码为 Function Component 以为 React 19 做更好性能准备。#52209 @li-jia-nan
    • 💄 优化 Tree disabledselected 节点状态下的颜色展示。#52173 @EmilyyyLiu
  • 🆕 Transfer 支持 showSearch 配置 defaultValueplaceholder#52125 @EmilyyyLiu
  • 🆕 Calendar 支持 showWeek 属性用于显示周数列。#52072 @afc163
  • 🆕 Mentions 新增 onPopupScroll 属性。#51858 @OysterD3
  • 🆕 Card 增加 bodyPaddingSMheaderPaddingSMbodyPaddingheaderPadding 组件 token。#51762 @thinkasany
  • 🆕 ColorP...
Read more

5.22.7

27 Dec 06:40
1d267d9
Compare
Choose a tag to compare
  • 🐞 Fix Button text and icon not align. #52132 @afc163
  • 🐞 Fix Button throws reactRender is not a function under React 19. #52105 @afc163
  • TypeScript
    • 🤖 Fix Menu interface type error from external module. #51715 @msyavuz

  • 🐞 修复 Button 文字和图标不对齐的问题。#52132 @afc163
  • 🐞 修复在 React 19 下点击 Button 时抛出 reactRender is not a function 错误的问题。#52105 @afc163
  • TypeScript

5.22.6

23 Dec 10:49
fb65341
Compare
Choose a tag to compare
  • 🐞 Align Button with and without icons consistently. #52070
  • 🐞 Fix Splitter collapsible icon z-index too low. #52065 @wanpan11
  • 🐞 Fix Button motion not smooth when set loading. #52059 @zombieJ
  • 🐞 Fix Button issue where solid default button text disappears on hover in dark mode. #52024 @DDDDD12138

  • 🐞 修复 Button 有图标和无图标按钮对齐差一像素的问题。#52070
  • 🐞 修复 Splitter 组件折叠图标 z-index 层级过低问题。#52065 @wanpan11
  • 🐞 修复 Button 启用 loading 时,动画不够顺滑的问题。#52059 @zombieJ
  • 🐞 修复 Button 暗色模式下默认填充按钮文本在悬停时消失的问题。#52024 @DDDDD12138

5.22.5

14 Dec 17:05
5da9dde
Compare
Choose a tag to compare
  • 🛠 Refactor Wave/Menu/Form ref check logic to resolve React 19 ref conflict (Note, this is not finally support React 19 but we will resolve step by step in future version). #51952 @zombieJ
  • 🐞 Fix Dropdown cannot accept ReactNode as children. #50174 @coding-ice
  • 🐞 Fix Carousel cannot display correctly in Modal without icon. #51988 @quan060798
  • 🐞 Fix Select label overflow issue. #52011 @OysterD3
  • 🐞 Fix Form setFieldValue not reset field validation. #51993 @zombieJ
  • 🐞 Fix Pagination with setting showSizeChanger.showSearch not working. #51962 @zombieJ
  • 🇰🇷 Improve Korean locales for DatePicker. #51983 @DevLeti
  • 🤖 Export CheckboxChangeEvent from antd. #52008 @SpecLad

  • 🛠 重构 Wave/Menu/Form ref 检查逻辑以解决 React 19 ref 部分冲突(注:该更新不会完全解决 React 19 兼容问题,后续将会持续更新)。#51952 @zombieJ
  • 🐞 修复 Dropdown children 不支持传入 ReactNode 的问题。#50174 @coding-ice
  • 🐞 修复 Carousel 某些情况下在 Modal 中无法正确展示的问题。#51988 @quan060798
  • 🐞 修复 Select 选中文本溢出的问题 。#52011 @OysterD3
  • 🐞 修复 Form setFieldValue 没有重置字段校验信息的问题。#51993 @zombieJ
  • 🐞 修复 Pagination 配置 showSizeChanger.showSearch 无效的问题。#51962 @zombieJ
  • 🇰🇷 优化 DatePicker 韩语本地化文案。#51983 @DevLeti
  • 🤖 从 antd 里导出 CheckboxChangeEvent 类型。#52008 @SpecLad