You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/guide/best-practices/accessibility.md
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -277,6 +277,27 @@ Avoid using placeholders as they can confuse many users.
277
277
278
278
One of the issues with placeholders is that they don't meet the [color contrast criteria](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html) by default; fixing the color contrast makes the placeholder look like pre-populated data in the input fields. Looking at the following example, you can see that the Last Name placeholder which meets the color contrast criteria looks like pre-populated data:
279
279
280
+
```vue-html
281
+
<form
282
+
class="demo"
283
+
action="/dataCollectionLocation"
284
+
method="post"
285
+
autocomplete="on"
286
+
>
287
+
<div v-for="item in formItems" :key="item.id" class="form-item">
0 commit comments