From 4c5bca4aebf8b8cbb928f083b21bc1a1583f2030 Mon Sep 17 00:00:00 2001 From: Aanchal Mishra <87779967+aanchalm01@users.noreply.github.com> Date: Thu, 27 Jul 2023 11:22:02 -0400 Subject: [PATCH] feat(kslideout): introduce kui tokens (#1586) feat(kslideout): introduce kui tokens [khcp-7724] --- .github/CODEOWNERS | 1 + docs/components/slideout.md | 14 ++++++++++---- src/components/KSlideout/KSlideout.vue | 16 +++++++++------- src/styles/_tmp-variables.scss | 1 + 4 files changed, 21 insertions(+), 11 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0338941334..08441ea0f3 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -52,6 +52,7 @@ /src/components/KRadio @adamdehaven @jillztom @portikM /src/components/KSegmentedControl @adamdehaven @jillztom @portikM /src/components/KSelect @adamdehaven @jillztom @portikM +/src/components/KSlideout @adamdehaven @jillztom @portikM /src/components/KTable @adamdehaven @jillztom @portikM /src/components/KTabs @adamdehaven @jillztom @portikM /src/components/KTextArea @adamdehaven @jillztom @portikM diff --git a/docs/components/slideout.md b/docs/components/slideout.md index 470000c9d5..99aa254a53 100644 --- a/docs/components/slideout.md +++ b/docs/components/slideout.md @@ -17,7 +17,7 @@ Below we demonstrate wrapping `KSlideout` in the [`KToggle`](/components/renderl

Anim officia eiusmod duis est consequat nulla tempor ad non magna Lorem ullamco nostrud amet. Occaecat voluptate dolor enim eiusmod do qui nulla pariatur enim. Et elit elit consequat do do duis enim est ullamco id sunt sunt amet eiusmod. Do minim mollit irure ea sunt officia minim sint eiusmod enim amet. Quis exercitation in ullamco quis aliqua.

Buttons - + @@ -25,7 +25,7 @@ Below we demonstrate wrapping `KSlideout` in the [`KToggle`](/components/renderl + class="vertical-spacing" /> @@ -44,7 +44,7 @@ Below we demonstrate wrapping `KSlideout` in the [`KToggle`](/components/renderl

Anim officia eiusmod duis est consequat nulla tempor ad non magna Lorem ullamco nostrud amet. Occaecat voluptate dolor enim eiusmod do qui nulla pariatur enim. Et elit elit consequat do do duis enim est ullamco id sunt sunt amet eiusmod. Do minim mollit irure ea sunt officia minim sint eiusmod enim amet. Quis exercitation in ullamco quis aliqua.

Buttons - + @@ -52,7 +52,7 @@ Below we demonstrate wrapping `KSlideout` in the [`KToggle`](/components/renderl + class="vertical-spacing" /> @@ -80,3 +80,9 @@ There is one default slot which is used to place content into the slideout panel ## Events - `@close` - Emitted when the close button is clicked, anything outside the panel is clicked, or the `esc` key is pressed. + + \ No newline at end of file diff --git a/src/components/KSlideout/KSlideout.vue b/src/components/KSlideout/KSlideout.vue index b6e398547c..b36b4c3382 100644 --- a/src/components/KSlideout/KSlideout.vue +++ b/src/components/KSlideout/KSlideout.vue @@ -21,7 +21,7 @@ > @@ -41,6 +41,7 @@ import { onMounted, onUnmounted } from 'vue' import KCard from '@/components/KCard/KCard.vue' import KIcon from '@/components/KIcon/KIcon.vue' +import { KUI_ICON_SIZE_50 } from '@kong/design-tokens' const props = defineProps({ isVisible: { @@ -70,14 +71,15 @@ onUnmounted(() => {