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: allow custom class on Modal root div #2410

Merged
merged 2 commits into from
May 31, 2024

Conversation

MartinCupela
Copy link
Contributor

🎯 Goal

Allow to apply specific styles to different modal scenarios.

Copy link

codecov bot commented May 31, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 85.33%. Comparing base (5d00b56) to head (7ca2dcc).

Files Patch % Lines
src/components/Gallery/Gallery.tsx 0.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@@ -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}>
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Contributor

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". :)

@MartinCupela MartinCupela merged commit b614eff into release-v11 May 31, 2024
8 checks passed
@MartinCupela MartinCupela deleted the feat/custom-classname-on-modal branch May 31, 2024 14:27
github-actions bot pushed a commit that referenced this pull request Jun 7, 2024
## [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))
@stream-ci-bot
Copy link
Collaborator

🎉 This PR is included in version 11.20.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants