Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelodelain committed Jun 13, 2024
1 parent ec3ffda commit 73ba7e0
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
11 changes: 9 additions & 2 deletions components/molecules/VCarouselControls/Default.stories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@ const index = ref(0)
<template>
<NuxtStory>
<NuxtStoryVariant title="default">
<VCarouselControls v-model:index="index" :length="3" display-numbers />
<VCarouselControls
v-model:index="index"
:length="3"
display-numbers
/>
</NuxtStoryVariant>
<NuxtStoryVariant title="without numbers">
<VCarouselControls v-model:index="index" :length="3" />
<VCarouselControls
v-model:index="index"
:length="3"
/>
</NuxtStoryVariant>
</NuxtStory>
</template>
6 changes: 5 additions & 1 deletion components/molecules/VCarouselControls/VCarouselControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ function formatValue(n: number) {
<VIcon name="arrow-left" />
</template>
</VButton>
<div v-if="displayNumbers" class="text-body-xs" :class="$style.number">
<div
v-if="displayNumbers"
class="text-body-xs"
:class="$style.number"
>
<span>{{ formatValue(index) }} / {{ formatValue(length - 1) }}</span>
</div>
<VButton
Expand Down
2 changes: 1 addition & 1 deletion components/organisms/VCarousel/AsyncSlides.stories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const snapGridLength = ref(numSlides)
<template>
<NuxtStory>
<div
style="width: 500px; max-width: 100vw; border: 1px solid #ccc; overflow: hidden"
style=" overflow: hidden;width: 500px; max-width: 100vw; border: 1px solid #ccc"
>
<VCarousel
v-slot="{ slideClass }"
Expand Down
2 changes: 1 addition & 1 deletion components/organisms/VCarousel/Default.stories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const snapGridLength = ref(numSlides)
<template>
<NuxtStory>
<div
style="width: 500px; max-width: 100vw; border: 1px solid #ccc; overflow: hidden"
style=" overflow: hidden;width: 500px; max-width: 100vw; border: 1px solid #ccc"
>
<VCarousel
v-slot="{ slideClass }"
Expand Down
4 changes: 3 additions & 1 deletion components/organisms/VCarousel/VStoryAsyncSlide.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ defineProps({
</script>

<template>
<div :class="$style.root">Slide {{ index }}</div>
<div :class="$style.root">
Slide {{ index }}
</div>
</template>

<style module lang="scss">
Expand Down
2 changes: 1 addition & 1 deletion utils/a11y/focusable.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @see https://github.com/vue-a11y/vue-focus-loop/blob/master/src/FocusLoop.vue
// Should we use a more complete and complex solution like here https://allyjs.io/api/query/focusable.html ?
const focusableElementsSelector = [
...['input', 'select', 'button', 'textarea'].map((field) => `${field}:not([disabled]):not([tabindex^="-"])`),
...['input', 'select', 'button', 'textarea'].map(field => `${field}:not([disabled]):not([tabindex^="-"])`),
'a[href]:not([tabindex^="-"]',
'video[controls]:not([tabindex^="-"]',
'audio[controls]:not([tabindex^="-"]',
Expand Down

0 comments on commit 73ba7e0

Please sign in to comment.