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

fix(modal): add classModifier prop #960

Merged
merged 4 commits into from
Apr 25, 2022
Merged

Conversation

samuel-gomez-axa
Copy link
Contributor

Description of the issue

regression sur les modifier des modals

Person(s) for reviewing proposed changes

@arnaudforaison

Important

Before creating a pull request run unit tests

$ npm test

# watch for changes
$ npm test -- --watch

# For a specific file (e.g., in packages/context/__tests__/command.test.js)
$ npm test -- --watch packages/action

export type ModalCoreProps = ModalCoreComponentProps & WithClassModifierOptions;

const enhance = compose(
identity<ModalCoreComponentProps>(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Est-ce qu'il ne faudrait pas mettre ModalCoreProps comme type ici pour avoir accès au classModifier ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

bien vu, done

Debaerdm
Debaerdm previously approved these changes Apr 8, 2022
MartinWeb
MartinWeb previously approved these changes Apr 12, 2022
@@ -5,6 +5,9 @@
animation: fademodal 0.1s linear;
z-index: 3;
overflow: auto;
&--after-open {
background: rgba(48, 50, 191, 0.62) !important;
Copy link
Contributor

Choose a reason for hiding this comment

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

Est ce qu'on ne prendrais pas une couleur déjà définie ou on la définie ? Pourquoi le important ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

exact, on peut utiliser une variable, par contre pour le important, je n'ai pas trouvé d'autres solutions car le css est mis en inline sur react-modal :
Capture d’écran 2022-04-25 à 10 16 52

@samuel-gomez-axa samuel-gomez-axa merged commit 4134b12 into master Apr 25, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix/modal-modifier branch April 25, 2022 13:56
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