-
Notifications
You must be signed in to change notification settings - Fork 4
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 dismiss #246
fix: modal dismiss #246
Conversation
Getting startedPlease make sure you read our documentation on how to write code for components, stories and styles.
|
Codecov ReportAll modified and coverable lines are covered by tests β
β Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #246 +/- ##
=======================================
Coverage 99.24% 99.24%
=======================================
Files 298 298
Lines 1977 1978 +1
Branches 290 291 +1
=======================================
+ Hits 1962 1963 +1
Misses 13 13
Partials 2 2 β View full report in Codecov by Sentry. |
code: "Escape", | ||
keyCode: 27, | ||
}); | ||
expect(screen.queryByTestId("dismiss-modal-button")).toBeNull(); |
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.
no me quedΓ³ claro la ejecuciΓ³n de esta prueba, si en el modal que no tiene el dismiss ejecutamos Escape cuando vamos a verificar el elemento con el testId dismiss-modal-button
no deberiΓ‘ existir? .. Eso quiere decir que con el Escape se estarΓa cerrando? π€
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.
Hola @harrytiendanube, gracias por la observaciΓ³n. En realidad el botΓ³n no se renderiza nunca, este evento se colΓ³ haciendo algunas pruebas. Ahora lo saco
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.
@harrytiendanube ahΓ subΓ los cambios en este commit. No saquΓ© el evento, sino que agreguΓ© un assert para determinar que el modal quedΓ³ abierto
β¦gn-system into fix/modal-dismiss
Quality Gate passedIssues Measures |
* fix(modal): make `onDismiss` optional and conditionally render close button * feat: add change * feat: fix change * feat: add change log * feat: add change log * feat: fix change log * feat: fix change log * feat: fix change logs * fix: versions yml * feat: fix test --------- Co-authored-by: dommirr <[email protected]> Co-authored-by: Ignacio Zullo Salvucci <[email protected]> Co-authored-by: Harry Barzola <[email protected]>
* fix: modal dismiss (#246) * fix(modal): make `onDismiss` optional and conditionally render close button * feat: add change * feat: fix change * feat: add change log * feat: add change log * feat: fix change log * feat: fix change log * feat: fix change logs * fix: versions yml * feat: fix test --------- Co-authored-by: dommirr <[email protected]> Co-authored-by: Ignacio Zullo Salvucci <[email protected]> Co-authored-by: Harry Barzola <[email protected]> * fix(tabs): align center buttons (#261) * fix: tabs align center when is full * chore: include patch to components * docs: add changelog * chore: fix version release --------- Co-authored-by: dommirr <[email protected]> Co-authored-by: dommirr <[email protected]> Co-authored-by: Ignacio Zullo Salvucci <[email protected]>
Type
Changes proposed βοΈ
@nimbus-ds/[email protected]
π Bug fixes
onDismiss
property optional forModal
component. IfonDismiss
is not provided, the modal can no longer be closed by clicking outside or pressing the close buttonModal
component whenonDismiss
is not provided. (#246 by @dommirr)