-
Notifications
You must be signed in to change notification settings - Fork 279
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: allow custom class on Modal root div #2410
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release-v11 #2410 +/- ##
============================================
Coverage 85.33% 85.33%
============================================
Files 392 392
Lines 9028 9029 +1
Branches 2323 2323
============================================
+ Hits 7704 7705 +1
Misses 1116 1116
Partials 208 208 ☔ View full report in Codecov by Sentry. |
@@ -42,7 +45,7 @@ export const Modal = ({ children, onClose, open }: PropsWithChildren<ModalProps> | |||
if (!open) return null; | |||
|
|||
return ( | |||
<div className='str-chat__modal str-chat__modal--open' onClick={handleClick}> | |||
<div className={clsx('str-chat__modal str-chat__modal--open', className)} onClick={handleClick}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
str-chat__modal--open
- that's funny
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not remove it as it would be a breaking change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, I'm not suggesting - treat this as "completely useless comment". :)
## [11.20.0](v11.19.0...v11.20.0) (2024-06-07) ### Bug Fixes * make it possible to jump to system messages in MessageList ([#2404](#2404)) ([6cb81c5](6cb81c5)) * reflect separateGiphyPreview prop value in VirtualizedMessageList ([#2402](#2402)) ([5d00b56](5d00b56)) * update quoting message on update of quoted message ([#2408](#2408)) ([4ec3518](4ec3518)) ### Features * allow custom class on Modal root div ([#2410](#2410)) ([b614eff](b614eff)) * allow to customize MessageStatus UI by message delivery status ([#2405](#2405)) ([7929bc2](7929bc2)) * memoize & add highlightDuration parameter to jumpTo[FirstUnread]Message ([#2414](#2414)) ([305d4f3](305d4f3)) ### Chores * **deps:** bump stream-chat to v8.33.1 ([ded8f05](ded8f05))
🎉 This PR is included in version 11.20.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎯 Goal
Allow to apply specific styles to different modal scenarios.