From b6cd67dbd5742b1a5496d375006b827c2993b56d Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 20 Mar 2020 16:08:41 -0400 Subject: [PATCH] add "Replying as {channel}" to reply input label for comments --- ui/component/commentCreate/view.jsx | 2 +- ui/scss/init/_gui.scss | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/component/commentCreate/view.jsx b/ui/component/commentCreate/view.jsx index dec370fa2..b93551e90 100644 --- a/ui/component/commentCreate/view.jsx +++ b/ui/component/commentCreate/view.jsx @@ -99,7 +99,7 @@ export function CommentCreate(props: Props) { disabled={channel === CHANNEL_NEW} type="textarea" name="content_description" - label={__('Comment')} + label={isReply ? __('Replying as %reply_channel%', { reply_channel: channel }) : __('Comment')} onFocus={onTextareaFocus} placeholder={__('Say something about this...')} value={commentValue} diff --git a/ui/scss/init/_gui.scss b/ui/scss/init/_gui.scss index d3f84130a..6e76d71b5 100644 --- a/ui/scss/init/_gui.scss +++ b/ui/scss/init/_gui.scss @@ -119,6 +119,11 @@ a { -webkit-user-drag: none; } +img { + // Hide alt text when an image fails to load + text-indent: -9999px; +} + .columns { display: flex; justify-content: space-between;