Skip to content
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

Feat/modal content class #2162

Merged
merged 10 commits into from
Apr 19, 2024

Conversation

LuyangFE
Copy link
Contributor

This PR adds the modalContentClass property of the Modal component, which can be used to set the style class name of Modal content

Parameter transfer
css
Effect drawing

Copy link

codesandbox-ci bot commented Apr 10, 2024

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 9d08105:

Sandbox Source
pr-story Configuration

@pointhalo
Copy link
Collaborator

预计跟 v2.57 beta.0 版本处理

@LuyangFE
Copy link
Contributor Author

预计跟 v2.57 beta.0 版本处理

我的pr会在2.57上线吗👀

@@ -286,6 +286,7 @@ export default class ModalContent extends BaseComponent<ModalContentReactProps,
onAnimationEnd={props.onAnimationEnd}
className={cls([`${cssClasses.DIALOG}-content`,
props.contentClassName,
Copy link
Collaborator

Choose a reason for hiding this comment

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

为什么要给 ModalContent 新增一个 modalContentClassName,可以合并到 contentClassName 里吗

@DaiQiangReal DaiQiangReal merged commit f453841 into DouyinFE:release Apr 19, 2024
1 check passed
@xmsz-stu
Copy link

这个很好 因为现在modal样式基本都是这个content里,而默认提供的那个contentClassName竟然附的是body里...

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.

5 participants