fix: Fix comment collapse and vote buttons not having focus style (#1789)
authorJay Sitter <jsit@users.noreply.github.com>
Mon, 3 Jul 2023 20:53:10 +0000 (16:53 -0400)
committerGitHub <noreply@github.com>
Mon, 3 Jul 2023 20:53:10 +0000 (16:53 -0400)
src/shared/components/comment/comment-node.tsx
src/shared/components/common/vote-buttons.tsx

index 15d912ee809403256c87179c7976707a231b7be8..6c7d5c0040298cacfb198f4946c5ca1370b64360 100644 (file)
@@ -299,7 +299,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
           >
             <div className="d-flex flex-wrap align-items-center text-muted small">
               <button
-                className="btn btn-sm text-muted me-2"
+                className="btn btn-sm btn-link text-muted me-2"
                 onClick={linkEvent(this, this.handleCommentCollapse)}
                 aria-label={this.expandText}
                 data-tippy-content={this.expandText}
index 2595bb620b0fd6bf8da38816c3c8f4abf90d7f6e..0664e76904f397f332d5ddf376e6244e479b04fa 100644 (file)
@@ -113,7 +113,7 @@ export class VoteButtonsCompact extends Component<
       <>
         <button
           type="button"
-          className={`btn-animate btn py-0 px-1 ${
+          className={`btn btn-animate btn-sm btn-link py-0 px-1 ${
             this.props.my_vote === 1 ? "text-info" : "text-muted"
           }`}
           data-tippy-content={tippy(this.props.counts)}
@@ -137,7 +137,7 @@ export class VoteButtonsCompact extends Component<
         {this.props.enableDownvotes && (
           <button
             type="button"
-            className={`ms-2 btn-animate btn py-0 px-1 ${
+            className={`ms-2 btn btn-sm btn-link btn-animate btn py-0 px-1 ${
               this.props.my_vote === -1 ? "text-danger" : "text-muted"
             }`}
             onClick={linkEvent(this, handleDownvote)}