diff --git a/src/guide/best-practices/accessibility.md b/src/guide/best-practices/accessibility.md index 5e99cff700..759b3bd381 100644 --- a/src/guide/best-practices/accessibility.md +++ b/src/guide/best-practices/accessibility.md @@ -277,6 +277,27 @@ Avoid using placeholders as they can confuse many users. 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: +```vue-html +
+``` + It is best to provide all the information the user needs to fill out forms outside any inputs. diff --git a/src/guide/extras/demos/SpreadSheet.vue b/src/guide/extras/demos/SpreadSheet.vue index 3739c981e5..0f70915676 100644 --- a/src/guide/extras/demos/SpreadSheet.vue +++ b/src/guide/extras/demos/SpreadSheet.vue @@ -26,7 +26,8 @@ const cols = cells.map((_, i) => String.fromCharCode(65 + i)) diff --git a/src/guide/extras/demos/SpreadSheetCell.vue b/src/guide/extras/demos/SpreadSheetCell.vue index 5cf2ec4d1c..4ca0b80683 100644 --- a/src/guide/extras/demos/SpreadSheetCell.vue +++ b/src/guide/extras/demos/SpreadSheetCell.vue @@ -33,6 +33,7 @@ function update(e) { height: 1.5em; line-height: 1.5; font-size: 15px; + color: var(--vt-c-text-1); } .cell span { @@ -46,7 +47,7 @@ function update(e) { } .cell input:focus { - border: 2px solid blue; - background-color: #fff; + border: 2px solid var(--vt-c-divider); + color: var(--vt-c-text-1); }