Commit 2d42057d authored by Savas Vedova's avatar Savas Vedova

Merge branch '287690-issue-comment-option-icons-are-not-aligned-consistently' into 'master'

Align note actions icons

See merge request gitlab-org/gitlab!53753
parents ec501451 9997c1cc
...@@ -244,66 +244,62 @@ export default { ...@@ -244,66 +244,62 @@ export default {
:title="displayContributorBadgeText" :title="displayContributorBadgeText"
>{{ __('Contributor') }}</span >{{ __('Contributor') }}</span
> >
<div v-if="canResolve" class="gl-ml-2"> <gl-button
<gl-button v-if="canResolve"
ref="resolveButton" ref="resolveButton"
v-gl-tooltip v-gl-tooltip
size="small" size="small"
category="tertiary" category="tertiary"
:variant="resolveVariant" :variant="resolveVariant"
:class="{ 'is-disabled': !resolvable, 'is-active': isResolved }" :class="{ 'is-disabled': !resolvable, 'is-active': isResolved }"
:title="resolveButtonTitle" :title="resolveButtonTitle"
:aria-label="resolveButtonTitle" :aria-label="resolveButtonTitle"
:icon="resolveIcon" :icon="resolveIcon"
:loading="isResolving" :loading="isResolving"
class="line-resolve-btn note-action-button" class="line-resolve-btn note-action-button"
@click="onResolve" @click="onResolve"
/> />
</div> <a
<div v-if="canAwardEmoji" class="gl-ml-3 gl-mr-2"> v-if="canAwardEmoji"
<a v-gl-tooltip
v-gl-tooltip :class="{ 'js-user-authored': isAuthoredByCurrentUser }"
:class="{ 'js-user-authored': isAuthoredByCurrentUser }" class="note-action-button note-emoji-button js-add-award js-note-emoji gl-text-gray-600 gl-m-2"
class="note-action-button note-emoji-button js-add-award js-note-emoji" href="#"
href="#" title="Add reaction"
title="Add reaction" data-position="right"
data-position="right" >
> <gl-icon class="link-highlight award-control-icon-neutral" name="slight-smile" />
<gl-icon class="link-highlight award-control-icon-neutral" name="slight-smile" /> <gl-icon class="link-highlight award-control-icon-positive" name="smiley" />
<gl-icon class="link-highlight award-control-icon-positive" name="smiley" /> <gl-icon class="link-highlight award-control-icon-super-positive" name="smile" />
<gl-icon class="link-highlight award-control-icon-super-positive" name="smile" /> </a>
</a>
</div>
<reply-button <reply-button
v-if="showReply" v-if="showReply"
ref="replyButton" ref="replyButton"
class="js-reply-button" class="js-reply-button"
@startReplying="$emit('startReplying')" @startReplying="$emit('startReplying')"
/> />
<div v-if="canEdit" class="gl-ml-2"> <gl-button
<gl-button v-if="canEdit"
v-gl-tooltip v-gl-tooltip
title="Edit comment" title="Edit comment"
icon="pencil" icon="pencil"
size="small" size="small"
category="tertiary" category="tertiary"
class="note-action-button js-note-edit btn btn-transparent" class="note-action-button js-note-edit btn btn-transparent"
data-qa-selector="note_edit_button" data-qa-selector="note_edit_button"
@click="onEdit" @click="onEdit"
/> />
</div> <gl-button
<div v-if="showDeleteAction" class="gl-ml-2"> v-if="showDeleteAction"
<gl-button v-gl-tooltip
v-gl-tooltip title="Delete comment"
title="Delete comment" size="small"
size="small" icon="remove"
icon="remove" category="tertiary"
category="tertiary" class="note-action-button js-note-delete btn btn-transparent"
class="note-action-button js-note-delete btn btn-transparent" @click="onDelete"
@click="onDelete" />
/> <div v-else-if="shouldShowActionsDropdown" class="dropdown more-actions">
</div>
<div v-else-if="shouldShowActionsDropdown" class="dropdown more-actions gl-ml-2">
<gl-button <gl-button
v-gl-tooltip v-gl-tooltip
title="More actions" title="More actions"
......
<script> <script>
import { GlTooltipDirective, GlButton } from '@gitlab/ui'; import { GlTooltipDirective, GlButton } from '@gitlab/ui';
import { __ } from '~/locale';
export default { export default {
i18n: {
buttonText: __('Reply to comment'),
},
name: 'ReplyButton', name: 'ReplyButton',
components: { components: {
GlButton, GlButton,
...@@ -13,18 +17,16 @@ export default { ...@@ -13,18 +17,16 @@ export default {
</script> </script>
<template> <template>
<div class="gl-ml-2"> <gl-button
<gl-button ref="button"
ref="button" v-gl-tooltip
v-gl-tooltip data-track-event="click_button"
data-track-event="click_button" data-track-label="reply_comment_button"
data-track-label="reply_comment_button" category="tertiary"
category="tertiary" size="small"
size="small" icon="comment"
icon="comment" :title="$options.i18n.buttonText"
:title="__('Reply to comment')" :aria-label="$options.i18n.buttonText"
:aria-label="__('Reply to comment')" @click="$emit('startReplying')"
@click="$emit('startReplying')" />
/>
</div>
</template> </template>
---
title: Align note actions icons
merge_request: 53753
author: Claudius Ellsel (@clel)
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment