-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infrastructure: Add special Treatment of Examples Marked 'Experimenta…
…l' (pull #2977) Provides the infrastructure to treat example pages marked as experimental differently from other example pages as defined in issue #2836: 1. A different "Read This First" section that is expanded by default is inserted into experimental example pages. 2. Experimental example pages are excluded from the main index tables and listed in a separate section at the bottom of the index page. Experimental example pages are identified by a data attribute on the main element as defined in issue #2836. --------- Co-authored-by: Stalgia Grigg <[email protected]> Co-authored-by: Matt King <[email protected]>
- Loading branch information
1 parent
1637413
commit 2a2e148
Showing
5 changed files
with
72 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
content/shared/templates/experimental-example-usage-warning.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<meta charset="utf-8"> | ||
<title>Experimental Support Notice (Template)</title> | ||
<body> | ||
<h2 id="support-notice-header">Read This First</h2> | ||
<details id="support-notice" open> | ||
<summary> | ||
Experimental content! Do not use except for new standards development purposes. | ||
Please read below to understand why. | ||
</summary> | ||
<p>This is an experimental implementation of potential future techniques that may not yet be supported by web standards.</p> | ||
<ul> | ||
<li> This example may include ARIA, HTML, CSS, or other code that is not yet included in a final web standard specification. </li> | ||
<li>Experimental content is published in the APG only to facilitate discussion, gather feedback, and support testing of new features in browsers and assistive technologies.</li> | ||
<li> | ||
There may be little or no support for this example in any or most | ||
<a href="../../practices/read-me-first/read-me-first-practice.html#browser_and_AT_support">browser and assistive technology combinations</a>. | ||
</li> | ||
<li>The <a href="https://aria-at.w3.org">ARIA and Assistive Technologies Project</a> is developing measurements of assistive technology support for APG examples.</li> | ||
</ul> | ||
</details> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters