From 11fc3697ed279e80b7b74383f4edea62b39f328d Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Fri, 9 Aug 2019 20:24:54 +0000 Subject: [PATCH] fix: addressed chrome browser issues (#2453) --- .../sections/General/CommentEditingConfig.css | 3 -- .../sections/General/CommentLengthConfig.tsx | 8 +++-- .../sections/Moderation/PerspectiveConfig.tsx | 4 ++- .../Moderation/RecentCommentHistoryConfig.tsx | 4 ++- .../__snapshots__/general.spec.tsx.snap | 12 ++++---- .../__snapshots__/moderation.spec.tsx.snap | 22 ++++++-------- .../framework/components/DurationField.css | 6 +++- .../framework/components/DurationField.tsx | 29 ++++++++----------- .../__snapshots__/DurationField.spec.tsx.snap | 15 ++++------ 9 files changed, 49 insertions(+), 54 deletions(-) delete mode 100644 src/core/client/admin/routes/Configure/sections/General/CommentEditingConfig.css diff --git a/src/core/client/admin/routes/Configure/sections/General/CommentEditingConfig.css b/src/core/client/admin/routes/Configure/sections/General/CommentEditingConfig.css deleted file mode 100644 index d0a099916..000000000 --- a/src/core/client/admin/routes/Configure/sections/General/CommentEditingConfig.css +++ /dev/null @@ -1,3 +0,0 @@ -.commentEditingTextInput { - width: 120px; -} diff --git a/src/core/client/admin/routes/Configure/sections/General/CommentLengthConfig.tsx b/src/core/client/admin/routes/Configure/sections/General/CommentLengthConfig.tsx index 6fd334902..06eb640b9 100644 --- a/src/core/client/admin/routes/Configure/sections/General/CommentLengthConfig.tsx +++ b/src/core/client/admin/routes/Configure/sections/General/CommentLengthConfig.tsx @@ -79,7 +79,9 @@ const CommentLengthConfig: FunctionComponent = ({ disabled }) => ( > = ({ disabled }) => ( > = ({ disabled }) => { <> = ({ disabled }) => { {({ input, meta }) => ( <>
-
-

- Days -

-
+

+ Days +

{ return null; } - let adornment: React.ReactNode = null; - if (this.state.elementCallbacks.length === 1) { - const unit = this.state.elementCallbacks[0]; - adornment = ( - - {unit} - - ); - } - return ( { autoCorrect="off" autoCapitalize="off" spellCheck={false} - adornment={adornment} textAlignCenter aria-label="value" /> - {!adornment && ( + {this.state.elementCallbacks.length === 1 ? ( + + + {this.state.elementCallbacks[0]} + + + ) : ( diff --git a/src/core/client/framework/components/__snapshots__/DurationField.spec.tsx.snap b/src/core/client/framework/components/__snapshots__/DurationField.spec.tsx.snap index 3fe60e34b..8d950bef9 100644 --- a/src/core/client/framework/components/__snapshots__/DurationField.spec.tsx.snap +++ b/src/core/client/framework/components/__snapshots__/DurationField.spec.tsx.snap @@ -5,7 +5,6 @@ exports[`accepts invalid input 1`] = ` itemGutter={true} >