Commit fb5358e0 authored by Enrique Alcántara's avatar Enrique Alcántara

Merge branch '216035-clone-dropdown-icons-alignment' into 'master'

Fixed alignment of snippet clone copy btns

See merge request gitlab-org/gitlab!30897
parents c6c95d49 f379f4ad
......@@ -4,7 +4,6 @@ import {
GlNewDropdownHeader,
GlFormInputGroup,
GlButton,
GlIcon,
GlTooltipDirective,
} from '@gitlab/ui';
import { __, sprintf } from '~/locale';
......@@ -16,7 +15,6 @@ export default {
GlNewDropdownHeader,
GlFormInputGroup,
GlButton,
GlIcon,
},
directives: {
GlTooltip: GlTooltipDirective,
......@@ -59,9 +57,9 @@ export default {
v-gl-tooltip.hover
:title="$options.copyURLTooltip"
:data-clipboard-text="sshLink"
>
<gl-icon name="copy-to-clipboard" :title="$options.copyURLTooltip" />
</gl-button>
icon="copy-to-clipboard"
class="d-inline-flex"
/>
</template>
</gl-form-input-group>
</div>
......@@ -77,9 +75,9 @@ export default {
v-gl-tooltip.hover
:title="$options.copyURLTooltip"
:data-clipboard-text="httpLink"
>
<gl-icon name="copy-to-clipboard" :title="$options.copyURLTooltip" />
</gl-button>
icon="copy-to-clipboard"
class="d-inline-flex"
/>
</template>
</gl-form-input-group>
</div>
......
---
title: Fixed alignment of Snippet Clone copy buttons
merge_request: 30897
author:
type: fixed
......@@ -44,18 +44,13 @@ exports[`Clone Dropdown Button rendering matches the snapshot 1`] = `
>
<gl-button-stub
category="tertiary"
class="d-inline-flex"
data-clipboard-text="ssh://foo.bar"
icon=""
icon="copy-to-clipboard"
size="medium"
title="Copy URL"
variant="default"
>
<gl-icon-stub
name="copy-to-clipboard"
size="16"
title="Copy URL"
/>
</gl-button-stub>
</b-input-group-append-stub>
</b-input-group-stub>
</div>
......@@ -94,18 +89,13 @@ exports[`Clone Dropdown Button rendering matches the snapshot 1`] = `
>
<gl-button-stub
category="tertiary"
class="d-inline-flex"
data-clipboard-text="http://foo.bar"
icon=""
icon="copy-to-clipboard"
size="medium"
title="Copy URL"
variant="default"
>
<gl-icon-stub
name="copy-to-clipboard"
size="16"
title="Copy URL"
/>
</gl-button-stub>
</b-input-group-append-stub>
</b-input-group-stub>
</div>
......
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