Skip to content

Commit

Permalink
Remove non component classes (#2783)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustem-nasyrov authored Dec 9, 2022
1 parent 126b2ee commit beca11e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
11 changes: 9 additions & 2 deletions packages/ui/src/components/va-counter/VaCounter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</template>

<template v-else #prependInner="slotScope">
<div @mousedown.prevent="focus">
<div @mousedown.prevent="focus" class="va-counter__prepend-inner">
<slot name="decreaseAction" v-bind="{ ...slotScope, decreaseCount }">
<va-button v-bind="decreaseIconProps" />
</slot>
Expand All @@ -49,7 +49,7 @@
</template>

<template v-else #appendInner="slotScope">
<div @mousedown.prevent="focus">
<div @mousedown.prevent="focus" class="va-counter__append-inner">
<slot name="increaseAction" v-bind="{ ...slotScope, increaseCount }">
<va-button v-bind="increaseIconProps" />
</slot>
Expand Down Expand Up @@ -439,5 +439,12 @@ export default defineComponent({
padding-right: 0;
}
}
&__prepend-inner,
&__append-inner {
display: flex;
align-items: stretch;
height: 100%;
}
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<slot name="year" v-bind="{ year: syncView.year }">{{ syncView.year }}</slot>

<slot v-if="syncView.type === 'day'" name="month" v-bind="{ month: syncView.month }">
<span class="ml-1">{{ monthNames[syncView.month] }}</span>
<span class="va-date-picker__header__month">{{ monthNames[syncView.month] }}</span>
</slot>
</va-button>
</slot>
Expand Down Expand Up @@ -113,6 +113,10 @@ export default defineComponent({
&__text {
color: currentColor;
}
&__month {
margin-left: 0.25rem;
}
}
}
</style>
6 changes: 5 additions & 1 deletion packages/ui/src/components/va-modal/VaModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
v-if="$props.cancelText"
preset="secondary"
color="secondary"
class="mr-3"
class="va-modal__default-cancel-button"
@click="cancel"
>
{{ tp($props.cancelText) }}
Expand Down Expand Up @@ -533,6 +533,10 @@ export default defineComponent({
z-index: 1;
}
&__default-cancel-button {
margin-right: 0.75rem;
}
&__footer {
margin-top: auto;
min-height: fit-content;
Expand Down

0 comments on commit beca11e

Please sign in to comment.