From 1f8c84d889e4f8431f438e9e16f4e69cf41063e0 Mon Sep 17 00:00:00 2001 From: Andres Beltran <66681471+andres039@users.noreply.github.com> Date: Tue, 28 Jun 2022 11:43:54 -0400 Subject: [PATCH] fix: keep size of modal when a new password is introduced on the input field (#706) Co-authored-by: Nick Charlton --- package-lock.json | 24 ------------------------ src/components/PasswordStrengthMeter.js | 5 +++-- 2 files changed, 3 insertions(+), 26 deletions(-) diff --git a/package-lock.json b/package-lock.json index e4ded94b7..a62f750d6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27267,8 +27267,6 @@ }, "node_modules/npm/node_modules/cli-table3/node_modules/string-width": { "version": "4.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", - "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", "inBundle": true, "license": "MIT", "dependencies": { @@ -27438,8 +27436,6 @@ }, "node_modules/npm/node_modules/debug/node_modules/ms": { "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "inBundle": true, "license": "MIT" }, @@ -27650,8 +27646,6 @@ }, "node_modules/npm/node_modules/gauge/node_modules/aproba": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", "inBundle": true, "license": "ISC" }, @@ -27670,8 +27664,6 @@ }, "node_modules/npm/node_modules/gauge/node_modules/string-width": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "inBundle": true, "license": "MIT", "dependencies": { @@ -28967,8 +28959,6 @@ }, "node_modules/npm/node_modules/request/node_modules/tough-cookie": { "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", "inBundle": true, "license": "BSD-3-Clause", "dependencies": { @@ -29207,8 +29197,6 @@ }, "node_modules/npm/node_modules/string-width/node_modules/strip-ansi": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "inBundle": true, "license": "MIT", "dependencies": { @@ -61011,8 +60999,6 @@ }, "string-width": { "version": "4.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", - "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", "bundled": true, "requires": { "emoji-regex": "^8.0.0", @@ -61133,8 +61119,6 @@ "dependencies": { "ms": { "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "bundled": true } } @@ -61297,8 +61281,6 @@ "dependencies": { "aproba": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", "bundled": true }, "is-fullwidth-code-point": { @@ -61312,8 +61294,6 @@ }, "string-width": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "bundled": true, "requires": { "code-point-at": "^1.0.0", @@ -62258,8 +62238,6 @@ "dependencies": { "tough-cookie": { "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", "bundled": true, "requires": { "psl": "^1.1.28", @@ -62430,8 +62408,6 @@ }, "strip-ansi": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "bundled": true, "requires": { "ansi-regex": "^3.0.0" diff --git a/src/components/PasswordStrengthMeter.js b/src/components/PasswordStrengthMeter.js index cf300e78f..d3ae7a4fe 100644 --- a/src/components/PasswordStrengthMeter.js +++ b/src/components/PasswordStrengthMeter.js @@ -4,6 +4,7 @@ import { withStyles } from '@material-ui/core/styles'; import LinearProgress from '@material-ui/core/LinearProgress'; import Typography from '@material-ui/core/Typography'; import classNames from 'classnames'; +import { Box } from '@material-ui/core'; const styles = (theme) => ({ alert: { @@ -34,7 +35,7 @@ const PasswordStrengthMeter = (props) => { }; return ( - <> + {password && ( <> { )} - + ); };