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

Feature/support aa accesibility #179

Merged
merged 2 commits into from
Oct 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions dev/typescript/App.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<div id="app">
<div class="page container">
<h1 class="title m-4">{{ title }}</h1>
<div class="flex justify-between">
<div class="card p-6 mr-4">
<h1 class="title m-4 text-bg">{{ title }}</h1>
<div class="flex flex-wrap justify-between">
<div class="card p-6 w-full sm:w-1/2">
<dynamic-form
:form="form"
@submited="handleSubmit"
Expand All @@ -15,6 +15,7 @@
>
<div class="avocado-field">
<input
:id="control.name"
v-if="control"
class="form-control"
v-model="control.value"
Expand All @@ -36,7 +37,7 @@
Submit Form
</button>
</div>
<div class="card p-6">
<div class="p-6 w-full sm:w-1/3">
<pre>{{ formValues }}</pre>
</div>
</div>
Expand Down Expand Up @@ -101,6 +102,7 @@ export default defineComponent({
label: 'Name',
type: 'text',
value: 'Alvaro',
required: true,
} as TextInput,
email: {
label: 'Email',
Expand All @@ -110,6 +112,7 @@ export default defineComponent({
password: {
label: 'Password',
type: 'password',
autocomplete: 'current-password',
validations: [passwordValidator],
} as PasswordInput,
stock: {
Expand Down Expand Up @@ -240,6 +243,15 @@ export default defineComponent({
});
</script>
<style lang="scss">
.text-bg {
background-image: linear-gradient(
to top,
#99ffd580 54%,
transparent 54%,
transparent 100%
);
width: fit-content;
}
.avocado-field {
position: relative;

Expand Down
Loading