Make sure ConfirmButton cannot be clicked when closed (#34818) (#34967)

(cherry picked from commit e38c6d73a0)

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot) 2021-05-31 04:07:31 -04:00 committed by GitHub
parent dfff63da1b
commit a7a9d002cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,12 +155,14 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => {
display: flex;
overflow: hidden;
position: absolute;
pointer-events: none;
`,
confirmButtonShow: css`
z-index: 1;
opacity: 1;
transition: opacity 0.08s ease-out, transform 0.1s ease-out;
transform: translateX(0);
pointer-events: all;
`,
confirmButtonHide: css`
opacity: 0;