drone build Mon Sep 14 18:17:56 PDT 2026
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
<li><strong>Web Content Accessibility Guidelines (WCAG):</strong> &quot;the standard that defines how to make Web content more accessible to people with disabilities. It defines a baseline set of guidelines that digital content must meet in order to provide minimum levels of accessibility.&quot; (Sara Souiedan, Practical Accessibility again)</li>
|
||||
</ul>
|
||||
<h2 id="semantic-html">Semantic HTML</h2>
|
||||
<p>Most HTML elements are semantic, that is, they convey meaning. Labeling something an <code>&lt;h1&gt;</code> doesn't just style it like a header; it also means that assistive tech can understand it to be a header (this also helps with SEO - a lot of things that improve accessibility improve SEO as well). See the Mozilla docs for a <a href="https://developer.mozilla.org/en-US/docs/Glossary/Semantics#semantic_elements" target="_blank" rel="external">list of semantic HTML elements</a>.</p>
|
||||
<p>Most HTML elements are semantic, that is, they convey meaning. Labeling something an <code>&lt;h1&gt;</code> doesn't just style it like a header; it also means that AT can understand it to be a header (this also helps with SEO - a lot of things that improve accessibility improve SEO as well). See the Mozilla docs for a <a href="https://developer.mozilla.org/en-US/docs/Glossary/Semantics#semantic_elements" target="_blank" rel="external">list of semantic HTML elements</a>.</p>
|
||||
<p>Notably, <code>&lt;div&gt;</code>s and <code>&lt;span&gt;</code>s are not semantic and convey no meaning. They are used for styling alone.</p>
|
||||
<h3 id="semantic-html-in-framer">Semantic HTML in Framer</h3>
|
||||
<p>Semantic HTML elements can be applied to any Framer element using the &quot;Accessibility&quot; section in the right-hand sidebar. Read about <a href="https://www.framer.com/help/articles/semantic-tags-navigation-footer/" target="_blank" rel="external">using semantic tags for navigation and footers</a> - this applies to far more than the two elements mentioned.</p>
|
||||
@@ -111,18 +111,16 @@
|
||||
</ol>
|
||||
<h3 id="forms-in-framer">Forms in Framer</h3>
|
||||
<ol>
|
||||
<li><strong>Labeling:</strong> follow the pattern that Framer uses in its basic form for labeling. This will nest the form control inside the label.</li>
|
||||
</ol>
|
||||
<li><strong>Labeling:</strong> follow the pattern that Framer uses in its basic form for labeling. This will nest the form control inside the label.
|
||||
<ul>
|
||||
<li>If you want an invisible label, you will need to write custom CSS.</li>
|
||||
</ul>
|
||||
<ol>
|
||||
<li><strong>Validation:</strong> In the &quot;Input&quot; section of the right-hand sidebar, there is a dropdown for input type. There is also a toggle for whether the input is required.</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><strong>Validation:</strong> In the &quot;Input&quot; section of the right-hand sidebar, there is a dropdown for input type. There is also a toggle for whether the input is required.
|
||||
<ul>
|
||||
<li>Note that setting an input to required will not add an asterisk or any other similar visual pattern to the label - doing this yourself is highly recommended. It also will not provide visual feedback to the user until clicking the &quot;Submit&quot; button, at which point an error message comes up - this can be a painful pattern for longer forms. Further visual feedback requires custom CSS.</li>
|
||||
</ul>
|
||||
<ol>
|
||||
</li>
|
||||
<li><strong>Reading order:</strong> follow the guidance for reading order discussed earlier.</li>
|
||||
<li><strong>Color:</strong> since visual feedback for required feeds does not exist by default, this only becomes a concern if you write custom CSS.</li>
|
||||
</ol>
|
||||
|
||||
Reference in New Issue
Block a user