Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit c4c6049

Browse files
authored
Merge pull request #179 from asigloo/feature/support-aa-accesibility
Feature/support aa accesibility
2 parents 1a5c483 + a0f7506 commit c4c6049

File tree

10 files changed

+205
-2395
lines changed

10 files changed

+205
-2395
lines changed

dev/typescript/App.vue

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<template>
22
<div id="app">
33
<div class="page container">
4-
<h1 class="title m-4">{{ title }}</h1>
5-
<div class="flex justify-between">
6-
<div class="card p-6 mr-4">
4+
<h1 class="title m-4 text-bg">{{ title }}</h1>
5+
<div class="flex flex-wrap justify-between">
6+
<div class="card p-6 w-full sm:w-1/2">
77
<dynamic-form
88
:form="form"
99
@submited="handleSubmit"
@@ -15,6 +15,7 @@
1515
>
1616
<div class="avocado-field">
1717
<input
18+
:id="control.name"
1819
v-if="control"
1920
class="form-control"
2021
v-model="control.value"
@@ -36,7 +37,7 @@
3637
Submit Form
3738
</button>
3839
</div>
39-
<div class="card p-6">
40+
<div class="p-6 w-full sm:w-1/3">
4041
<pre>{{ formValues }}</pre>
4142
</div>
4243
</div>
@@ -101,6 +102,7 @@ export default defineComponent({
101102
label: 'Name',
102103
type: 'text',
103104
value: 'Alvaro',
105+
required: true,
104106
} as TextInput,
105107
email: {
106108
label: 'Email',
@@ -110,6 +112,7 @@ export default defineComponent({
110112
password: {
111113
label: 'Password',
112114
type: 'password',
115+
autocomplete: 'current-password',
113116
validations: [passwordValidator],
114117
} as PasswordInput,
115118
stock: {
@@ -240,6 +243,15 @@ export default defineComponent({
240243
});
241244
</script>
242245
<style lang="scss">
246+
.text-bg {
247+
background-image: linear-gradient(
248+
to top,
249+
#99ffd580 54%,
250+
transparent 54%,
251+
transparent 100%
252+
);
253+
width: fit-content;
254+
}
243255
.avocado-field {
244256
position: relative;
245257

0 commit comments

Comments
 (0)