Make badge in false-positive-badge Pajamas compliant

parent 2f425df3
<script>
import { GlIcon, GlPopover, GlBadge, GlSprintf, GlLink } from '@gitlab/ui';
import { GlPopover, GlBadge, GlSprintf, GlLink } from '@gitlab/ui';
import { s__ } from '~/locale';
export default {
components: {
GlIcon,
GlPopover,
GlBadge,
GlSprintf,
......@@ -40,9 +39,7 @@ export default {
<template>
<div v-if="canViewFalsePositive" class="gl-display-inline-block">
<gl-badge ref="badge" variant="warning">
<gl-icon name="false-positive" />
</gl-badge>
<gl-badge ref="badge" icon="false-positive" variant="warning" />
<gl-popover ref="popover" :target="target" :title="$options.i18n.title" placement="top">
<gl-sprintf :message="$options.i18n.message">
<template #link="{ content }">
......
......@@ -5,14 +5,10 @@ exports[`False positive badge component should render the alert badge 1`] = `
class="gl-display-inline-block"
>
<gl-badge-stub
icon="false-positive"
size="md"
variant="warning"
>
<gl-icon-stub
name="false-positive"
size="16"
/>
</gl-badge-stub>
/>
<gl-popover-stub
cssclasses=""
......
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