Commit 7c6d82df authored by orozot's avatar orozot

Fix serverity and alert sidebar edit button style

Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/342464
Changelog: fixed
parent 250783d1
......@@ -5,7 +5,7 @@ import {
GlLoadingIcon,
GlTooltip,
GlSprintf,
GlLink,
GlButton,
} from '@gitlab/ui';
import createFlash from '~/flash';
import { INCIDENT_SEVERITY, ISSUABLE_TYPES, I18N } from './constants';
......@@ -20,7 +20,7 @@ export default {
GlSprintf,
GlDropdown,
GlDropdownItem,
GlLink,
GlButton,
SeverityToken,
},
inject: ['canUpdate'],
......@@ -150,23 +150,25 @@ export default {
<div class="hide-collapsed">
<p
class="gl-line-height-20 gl-mb-0 gl-text-gray-900 gl-display-flex gl-justify-content-space-between"
class="gl-line-height-20 gl-mb-2 gl-text-gray-900 gl-display-flex gl-justify-content-space-between"
>
{{ $options.i18n.SEVERITY }}
<gl-link
<gl-button
v-if="canUpdate"
category="tertiary"
size="small"
data-testid="editButton"
href="#"
@click="toggleFormDropdown"
@keydown.esc="hideDropdown"
>
{{ $options.i18n.EDIT }}
</gl-link>
</gl-button>
</p>
<gl-dropdown
:class="dropdownClass"
block
:header-text="__('Assign severity')"
:text="selectedItem.label"
toggle-class="dropdown-menu-toggle gl-mb-2"
@keydown.esc.native="hideDropdown"
......
......@@ -220,16 +220,17 @@ export default {
class="gl-text-gray-900 gl-mb-2 gl-line-height-20 gl-display-flex gl-justify-content-space-between"
>
{{ __('Assignee') }}
<a
<gl-button
v-if="isEditable"
ref="editButton"
class="btn-link"
href="#"
category="tertiary"
size="small"
class="gl-text-black-normal!"
@click="toggleFormDropdown"
@keydown.esc="hideDropdown"
>
{{ __('Edit') }}
</a>
</gl-button>
</p>
<gl-dropdown
......
......@@ -100,7 +100,8 @@ export default {
<gl-button
v-if="isEditable"
class="gl-text-black-normal!"
variant="link"
category="tertiary"
size="small"
@click="toggleFormDropdown"
@keydown.esc="hideDropdown"
>
......
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