Skip to content

Commit

Permalink
fix(kcodeblock): clear query button styles [KHCP-8975]
Browse files Browse the repository at this point in the history
  • Loading branch information
portikM committed Apr 5, 2024
1 parent 7a8cd5d commit c49f3cc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/KCodeBlock/KCodeBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@
aria-label="Clear query"
class="clear-query-button"
data-testid="clear-query-button"
title="Clear query"
type="button"
@click="clearQuery"
>
<CloseIcon title="Clear query" />
<CloseIcon />
</button>
<SearchIcon
v-else
Expand Down
6 changes: 5 additions & 1 deletion src/components/KInput/KInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,11 @@ $kInputSlotSpacing: var(--kui-space-40, $kui-space-40); // $kSelectInputSlotSpac
width: $kInputIconSize !important;
}
:deep([role="button"]) {
:deep([role="button"]), :deep(button) {
@include defaultButtonReset;
color: var(--kui-color-text-neutral, $kui-color-text-neutral);
&:not([disabled]) {
border-radius: var(--kui-border-radius-20, $kui-border-radius-20);
cursor: pointer;
Expand Down
1 change: 1 addition & 0 deletions src/styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@import "@/styles/mixins/cards";
@import "@/styles/mixins/badges";
@import "@/styles/mixins/loaders";
@import "@/styles/mixins/buttons";

@import "@/styles/tmp-variables";

Expand Down
7 changes: 7 additions & 0 deletions src/styles/mixins/_buttons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* Buttons mixins */

@mixin defaultButtonReset {
background-color: var(--kui-color-background-transparent, $kui-color-background-transparent);
border: none;
padding: var(--kui-space-0, $kui-space-0);
}

0 comments on commit c49f3cc

Please sign in to comment.