From aee1d041d65b7380cd2820779aca173f9df32051 Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Fri, 30 Apr 2021 05:28:47 -0400 Subject: [PATCH] Fixed aria label for edit menu item of a comment. (#13594) --- .../javascripts/utilities/buildCommentHTML.js.erb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/utilities/buildCommentHTML.js.erb b/app/assets/javascripts/utilities/buildCommentHTML.js.erb index 50d6e60c1..5a241da28 100644 --- a/app/assets/javascripts/utilities/buildCommentHTML.js.erb +++ b/app/assets/javascripts/utilities/buildCommentHTML.js.erb @@ -2,13 +2,13 @@ function buildCommentHTML(comment) { var iconSmallOverflowHorizontal = ``; var iconCollaspe = ``; var iconExpand = ``; - + var depthClass = ""; var customClass = ""; var detailsStartHTML = ""; var detailsEndHTML = ""; - + var commentHeader = ""; var commentFooter = ""; var commentAvatar = ""; @@ -19,7 +19,7 @@ function buildCommentHTML(comment) { } else { depthClass += "child " } - + if ( comment.depth > 3 ) { depthClass += "comment--too-deep "; } @@ -50,9 +50,9 @@ function buildCommentHTML(comment) { ${ comment.user.name } - + - +
  • Copy link
  • Settings
  • Report abuse
  • -
  • Edit
  • +
  • Edit
  • Delete
  • @@ -118,7 +118,7 @@ function react(comment) { var num = 1; var iconSmallHeart = ``; var iconSmallHeartFilled = ``; - + if (!comment.newly_created && comment.heart_ids.indexOf(userData().id) > -1) { reactedClass = "reacted" }