@thinkpixellab-public/px-vue 4.1.27 → 4.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -135,11 +135,13 @@ export default {
|
|
|
135
135
|
&--default {
|
|
136
136
|
@include controls.button-icon(
|
|
137
137
|
(
|
|
138
|
-
focus: controls.control-focus-style(outline),
|
|
139
138
|
padding: 0,
|
|
140
139
|
min-height: 0,
|
|
141
140
|
)
|
|
142
141
|
);
|
|
142
|
+
@include focus() {
|
|
143
|
+
outline: 1px dashed currentColor;
|
|
144
|
+
}
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
&--toggles.px-icon-button--unchecked {
|
package/components/PxSlides.vue
CHANGED
|
@@ -3,12 +3,16 @@
|
|
|
3
3
|
-->
|
|
4
4
|
|
|
5
5
|
<template>
|
|
6
|
-
<div :class="bem({ hasOffset, orientation, ...variantsMap })">
|
|
6
|
+
<div :class="bem({ hasOffset, orientation, ...variantsMap })" role="region">
|
|
7
7
|
<div
|
|
8
8
|
v-for="(item, index) in items"
|
|
9
9
|
:key="getItemKey(item)"
|
|
10
10
|
ref="slide"
|
|
11
|
+
:inert="!isItemSelected(item)"
|
|
11
12
|
:class="bem('slide-wrapper', { selected: isItemSelected(item) })"
|
|
13
|
+
:tabindex="-1"
|
|
14
|
+
role="region"
|
|
15
|
+
:aria-label="item.label ? item.label : undefined"
|
|
12
16
|
>
|
|
13
17
|
<px-slide-transition
|
|
14
18
|
:class="bem('transitioner')"
|
|
@@ -187,6 +191,10 @@ export default {
|
|
|
187
191
|
oldIndex = this.selectedRelativeIndex(oldIndex);
|
|
188
192
|
|
|
189
193
|
this.direction = oldIndex > newIndex ? 1 : -1;
|
|
194
|
+
|
|
195
|
+
this.$nextTick(() => {
|
|
196
|
+
this.$refs.slide[this.selectedIndex]?.focus();
|
|
197
|
+
});
|
|
190
198
|
},
|
|
191
199
|
dragEnabled(nv) {
|
|
192
200
|
if (!this.drag) {
|