Skip to content

Commit 2d0648a

Browse files
authored
Merge branch 'main' into prettier
2 parents 8140428 + 60d74a2 commit 2d0648a

File tree

4 files changed

+30
-5
lines changed

4 files changed

+30
-5
lines changed

content/body/form-error-checking.php

+24
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,30 @@
271271
}
272272
</script>
273273

274+
<script type="application/ld+json">
275+
{
276+
"@context": "https://schema.org",
277+
"@type": "WebPage",
278+
"name": "Accessible Form Validation: HTML5 and Custom Approaches",
279+
"description": "Learn how to make form validation and error checking accessible using HTML5 and custom validation methods. Includes code examples and best practices.",
280+
"url": "https://www.useragentman.com/enable/form-error-checking.php",
281+
"mainEntity": [
282+
{
283+
"@type": "HowTo",
284+
"name": "Using HTML5 for Accessible Form Validation",
285+
"text": "You can use just the required and pattern attributes on HTML forms to do client-side validation without JavaScript.",
286+
"url": "https://www.useragentman.com/enable/form-error-checking.php#using-native-html5-validation--heading"
287+
},
288+
{
289+
"@type": "HowTo",
290+
"name": "Using Custom Validation for Accessible Form Validation",
291+
"text": "You can use enable-a11y node package to handle client-side form validation and error messages.",
292+
"url": "https://www.useragentman.com/enable/form-error-checking.php#using-custom-validation--heading"
293+
}
294+
]
295+
}
296+
</script>
297+
274298

275299
<?= includeNPMInstructions("accessibility", [], null, false, [
276300
"needsAccessibilityLib" => true,

templates/data/meta-info.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
"desc": "Many designers will turn off focus styles on web apps. There are better solutions that ensure they appear for only the users that need them."
8181
},
8282
"form-error-checking.php": {
83-
"title": "Accessible Form Error Checking",
84-
"desc": "It is not hard to ensure forms work correctly with screen readers and other technology."
83+
"title": "How to Ensure Accessible Form Validation and Error Checking",
84+
"desc": "Learn how to make your form validation and error checking accessible. Follow best practices to ensure your web forms are compliant with WCAG guidelines and user-friendly for everyone."
8585
},
8686
"form.php": {
8787
"title": "Accessible Form Structure",

templates/includes/documentation-header.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ class="enable-flyout enable-flyout__level enable-flyout__dropdown">
305305
}, {
306306
"id": "flyout__link",
307307
"props": {
308-
"label": "Form Error Checking",
308+
"label": "Accessible Form Validation",
309309
"url-slug": "form-error-checking",
310310
"alt": ""
311311
}
@@ -589,7 +589,7 @@ class="enable-flyout enable-flyout__level enable-flyout__dropdown">
589589
"content": [{
590590
"id": "flyout__link",
591591
"props": {
592-
"label": "Form Error Checking",
592+
"label": "Accessible Form Validation",
593593
"url-slug": "form-error-checking",
594594
"alt": ""
595595
}

templates/includes/meta-info.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
<meta property="og:alt" content="" />
1515
<meta property="article:author" content="Zoltan Hawryluk" />
1616

17-
17+
<meta name="description" content="<?= $fileProps->desc ?>" />
1818
<meta name="twitter:card" content="summary_large_image">
1919
<meta name="twitter:description" content="<?= $fileProps->desc ?>" />
2020
<meta name="twitter:title" content="<?= $fileProps->title ?>" />
2121
<meta name="twitter:image" content="<?= $fileProps->posterImg ?>" />
22+
<link rel="icon" type="image/x-icon" href="images/ENABLE.svg">
2223

0 commit comments

Comments
 (0)