Commit 16e15fc5 authored by cnorris's avatar cnorris

Update button element with new code

Related to: https://gitlab.com/gitlab-org/gitlab/-/issues/219810
parent c3a1afa6
<script> <script>
/* eslint-disable vue/no-v-html */ /* eslint-disable vue/no-v-html */
import { GlTooltipDirective, GlLink, GlDeprecatedButton, GlTooltip } from '@gitlab/ui'; import { GlTooltipDirective, GlLink, GlButton, GlTooltip } from '@gitlab/ui';
import CiIconBadge from './ci_badge_link.vue'; import CiIconBadge from './ci_badge_link.vue';
import TimeagoTooltip from './time_ago_tooltip.vue'; import TimeagoTooltip from './time_ago_tooltip.vue';
import UserAvatarImage from './user_avatar/user_avatar_image.vue'; import UserAvatarImage from './user_avatar/user_avatar_image.vue';
...@@ -20,7 +20,7 @@ export default { ...@@ -20,7 +20,7 @@ export default {
TimeagoTooltip, TimeagoTooltip,
UserAvatarImage, UserAvatarImage,
GlLink, GlLink,
GlDeprecatedButton, GlButton,
GlTooltip, GlTooltip,
}, },
directives: { directives: {
...@@ -141,14 +141,13 @@ export default { ...@@ -141,14 +141,13 @@ export default {
<section v-if="$slots.default" data-testid="headerButtons" class="gl-display-flex"> <section v-if="$slots.default" data-testid="headerButtons" class="gl-display-flex">
<slot></slot> <slot></slot>
</section> </section>
<gl-deprecated-button <gl-button
v-if="hasSidebarButton" v-if="hasSidebarButton"
id="toggleSidebar" id="toggleSidebar"
class="d-block d-sm-none class="d-block d-sm-none sidebar-toggle-btn js-sidebar-build-toggle js-sidebar-build-toggle-header"
sidebar-toggle-btn js-sidebar-build-toggle js-sidebar-build-toggle-header" icon="angle-double-left"
:aria-label="__('Toggle sidebar')"
@click="onClickSidebarButton" @click="onClickSidebarButton"
> />
<i class="fa fa-angle-double-left" aria-hidden="true" aria-labelledby="toggleSidebar"> </i>
</gl-deprecated-button>
</header> </header>
</template> </template>
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