Skip to content

fix: Fix image group preview z index in nested modal #46035

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

Merged
merged 10 commits into from
Nov 24, 2023

Conversation

kiner-tang
Copy link
Member

@kiner-tang kiner-tang commented Nov 23, 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

fix #46034

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English fix: Fix image group preview z-index in nested modal
🇨🇳 Chinese 解决图片组 z-index 在嵌套弹框中设置异常问题

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

🤖[deprecated] Generated by Copilot at 0b7ff02

This pull request adds a new feature to the Image.PreviewGroup component that allows users to customize the z-index of the modal that shows the image preview group. It also adds a new demo example of using the Image.PreviewGroup component nested in a modal, and updates the documentation and tests accordingly.

🔍 Walkthrough

🤖[deprecated] Generated by Copilot at 0b7ff02

  • Add Image.PreviewGroup component to support previewing multiple images in a group with a modal (link, link, link, link, link, link)
  • Use useZIndex hook to get the z-index value for the Image.PreviewGroup component and pass it to the Modal component (link, link, link)
  • Test the useZIndex hook with the Image.PreviewGroup component in the useZIndex.test.tsx file (link, link, link)
  • Add a new demo example of using the Image.PreviewGroup component nested in a modal in the image/demo folder and the documentation files (link, link, link, link)

@kiner-tang kiner-tang requested a review from zombieJ November 23, 2023 02:59
Copy link

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

Copy link
Contributor

github-actions bot commented Nov 23, 2023

Preview Is ready

Copy link
Contributor

github-actions bot commented Nov 23, 2023

size-limit report 📦

Path Size
./dist/antd.min.js 324.4 KB (+65 B 🔺)
./dist/antd-with-locales.min.js 370.73 KB (+10 B 🔺)

Copy link

codesandbox-ci bot commented Nov 23, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8db8cd8:

Sandbox Source
antd reproduction template (forked) Configuration
exciting-estrela-mv2q7k Issue #46034

Copy link

codecov bot commented Nov 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6b18c85) 100.00% compared to head (8db8cd8) 100.00%.
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master    #46035   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          700       700           
  Lines        11855     11908   +53     
  Branches      3160      3180   +20     
=========================================
+ Hits         11855     11908   +53     

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

@kiner-tang kiner-tang changed the title fix: Fix image group preview z index in nested modal fix: [WIP] Fix image group preview z index in nested modal Nov 23, 2023
@kiner-tang kiner-tang changed the title fix: [WIP] Fix image group preview z index in nested modal fix: Fix image group preview z index in nested modal Nov 23, 2023
@MadCcc MadCcc merged commit 953fe6f into master Nov 24, 2023
@MadCcc MadCcc deleted the fix-image-group-preview-z-index-in-nested-modal branch November 24, 2023 08:17
@TomFuch
Copy link

TomFuch commented Nov 24, 2023

Same Problem when a notification has a tooltip in message content.

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.

Image PreviewGroup 多层Modal也有 z-index的问题
5 participants