Poprawki funkcjonalności i dostępności

This commit is contained in:
2022-10-21 01:35:25 +02:00
parent 43f03070b2
commit 4303d6daf3
6 changed files with 36 additions and 16 deletions
+20 -10
View File
@@ -19,6 +19,12 @@ import OrderSVue from './OrderS.vue';
import OrderFooter from './OrderFooter.vue';
import OrderOVue from './OrderO.vue';
const orderComponents = {
orderN: OrderNVue,
orderS: OrderSVue,
orderO: OrderOVue,
};
export default defineComponent({
components: { OrderNVue, OrderSVue, OrderFooter },
@@ -32,16 +38,7 @@ export default defineComponent({
computed: {
chosenOrderComponent() {
switch (this.store.chosenOrderType) {
case 'orderN':
return OrderNVue;
case 'orderS':
return OrderSVue;
case 'orderO':
return OrderOVue;
default:
return OrderNVue;
}
return orderComponents[this.store.chosenOrderType];
},
},
});
@@ -121,6 +118,19 @@ input {
font-size: 0.9em;
text-align: center;
color: black;
&:focus-visible {
border-bottom: 2px solid $accentCol;
}
}
input[type='checkbox'],
input[type='radio'],
textarea,
select {
&:focus-visible {
outline: 2px solid $accentCol;
}
}
select {