diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 97657df76e..084cf0d964 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -18,7 +18,7 @@ tag: vVERSION ## 5.17.0 -`2024-05-02` +`2024-05-03` - 🔥🔥🔥 `@ant-design/cssinjs` StyleProvider supports configuring `layer` to unified downgrade CSS priority. After the downgrade, the style of antd will always be lower than the default CSS selector priority, so that users can override the style (please be sure to check the browser compatibility of [@layer](https://developer.mozilla.org/en-US/docs/Web/CSS/@layer#browser_compatibility)), see [full documentation](https://ant.design/docs/react/compatible-style#layer-downgrade) for usage. [#48229](https://github.com/ant-design/ant-design/pull/48229) - 🆕 Carousel supports `arrows` to switching between slides now. [#48542](https://github.com/ant-design/ant-design/pull/48542) diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 20714fb9e5..ba30fde093 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -17,7 +17,7 @@ tag: vVERSION ## 5.17.0 -`2024-05-02` +`2024-05-03` - 🔥🔥🔥 `@ant-design/cssinjs` StyleProvider 支持配置 `layer` 统一降级 默认 CSS 优先级。经过降权后,antd 的样式将始终低于默认的 CSS 选择器优先级,以便于用户进行样式覆盖(请务必注意检查 [@layer](https://developer.mozilla.org/en-US/docs/Web/CSS/@layer#browser_compatibility) 浏览器兼容性),详情可见[文档](https://ant.design/docs/react/compatible-style-cn#layer-%E9%99%8D%E6%9D%83)。[#48229](https://github.com/ant-design/ant-design/pull/48229) - 🆕 Carousel 现在支持 `arrows` 来开启箭头切换功能。[#48542](https://github.com/ant-design/ant-design/pull/48542) diff --git a/tests/shared/imageTest.tsx b/tests/shared/imageTest.tsx index af1a25e995..db58b2dc49 100644 --- a/tests/shared/imageTest.tsx +++ b/tests/shared/imageTest.tsx @@ -178,7 +178,8 @@ export default function imageTest( await page.evaluate( (innerHTML: string, ssrStyle: string, triggerClassName?: string) => { - document.querySelector('#root')!.innerHTML = innerHTML; + const root = document.querySelector('#root')!; + root.innerHTML = innerHTML; const head = document.querySelector('head')!; head.innerHTML += ssrStyle; // Inject open trigger with block style