Something
293 |An article with some content could go here.
294 |├── 05_04 ├── style.css └── index.html ├── .gitignore ├── .github ├── CODEOWNERS ├── PULL_REQUEST_TEMPLATE.md └── ISSUE_TEMPLATE.md ├── 06_03 ├── images │ ├── cal.png │ ├── mega.png │ └── phones.png ├── style.css └── index.html ├── 06_04 ├── images │ ├── cal.png │ ├── mega.png │ └── phones.png ├── style.css └── index.html ├── 03_02 ├── style.css └── index.html ├── 06_05 ├── style.css ├── index.html └── script.js ├── 05_06 ├── script.js ├── style.css └── index.html ├── 04_05 ├── index.html └── style.css ├── CONTRIBUTING.md ├── NOTICE ├── 04_07 ├── index.html └── style.css ├── 05_05 ├── style.css └── index.html ├── 06_01 ├── script.js ├── index.html └── style.css ├── README.md ├── 06_02 ├── index.html ├── style.css └── script.js └── LICENSE /05_04/style.css: -------------------------------------------------------------------------------- 1 | .monster { 2 | height: 75vh; 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | .tmp 4 | npm-debug.log 5 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Codeowners for these exercise files: 2 | # * (asterisk) deotes "all files and folders" 3 | # Example: * @producer @instructor 4 | -------------------------------------------------------------------------------- /06_03/images/cal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinkedInLearning/simplifying-web-development-with-accessibility-best-practices-2883015/HEAD/06_03/images/cal.png -------------------------------------------------------------------------------- /06_04/images/cal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinkedInLearning/simplifying-web-development-with-accessibility-best-practices-2883015/HEAD/06_04/images/cal.png -------------------------------------------------------------------------------- /06_03/images/mega.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinkedInLearning/simplifying-web-development-with-accessibility-best-practices-2883015/HEAD/06_03/images/mega.png -------------------------------------------------------------------------------- /06_03/images/phones.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinkedInLearning/simplifying-web-development-with-accessibility-best-practices-2883015/HEAD/06_03/images/phones.png -------------------------------------------------------------------------------- /06_04/images/mega.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinkedInLearning/simplifying-web-development-with-accessibility-best-practices-2883015/HEAD/06_04/images/mega.png -------------------------------------------------------------------------------- /06_04/images/phones.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinkedInLearning/simplifying-web-development-with-accessibility-best-practices-2883015/HEAD/06_04/images/phones.png -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /03_02/style.css: -------------------------------------------------------------------------------- 1 | .sr-only { 2 | clip: rect(1px, 1px, 1px, 1px); 3 | clip-path: inset(50%); 4 | height: 1px; 5 | width: 1px; 6 | margin: -1px; 7 | overflow: hidden; 8 | padding: 0; 9 | position: absolute; 10 | } 11 | -------------------------------------------------------------------------------- /06_05/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, 3 | Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; 4 | font-size: 20px; 5 | } 6 | 7 | main { 8 | display: flex; 9 | flex-direction: column; 10 | align-items: center; 11 | } 12 | 13 | .pickers { 14 | max-width: 50ch; 15 | display: flex; 16 | gap: 2rem; 17 | } 18 | -------------------------------------------------------------------------------- /05_06/script.js: -------------------------------------------------------------------------------- 1 | const transcript = document.querySelector("#collapser"); 2 | transcript.classList.add("collapse"); 3 | const transcriptBtn = document.querySelector("#transcript-toggle"); 4 | 5 | transcriptBtn.addEventListener("click", () => { 6 | transcript.classList.contains("collapse") 7 | ? (transcriptBtn.innerHTML = "Collapse transcript") 8 | : (transcriptBtn.innerHTML = "Expand transcript"); 9 | transcript.classList.toggle("collapse"); 10 | }); 11 | -------------------------------------------------------------------------------- /04_05/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 |13 | This text is visible and available for both visual browsers and screen 14 | readers. 15 |
16 |17 | This text is not visible in visual browsers, but will be read out by 18 | screen readers. 19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /06_05/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |13 | Screen readers read this button out as "Print pickled cheese recipes 14 | button." 15 |
16 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /06_03/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, 3 | Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; 4 | font-size: 20px; 5 | } 6 | 7 | img { 8 | width: 100%; 9 | height: auto; 10 | } 11 | 12 | .sr-only { 13 | clip: rect(1px, 1px, 1px, 1px); 14 | clip-path: inset(50%); 15 | height: 1px; 16 | width: 1px; 17 | margin: -1px; 18 | overflow: hidden; 19 | padding: 0; 20 | position: absolute; 21 | } 22 | 23 | .card-list { 24 | margin: 2rem; 25 | padding: 0; 26 | display: flex; 27 | justify-content: space-between; 28 | list-style-type: none; 29 | gap: 2rem; 30 | } 31 | 32 | .card { 33 | position: relative; 34 | width: calc(100% / 3); 35 | border: 3px solid black; 36 | border-radius: 1rem; 37 | padding: 1rem; 38 | } 39 | 40 | .card a { 41 | color: black; 42 | text-decoration: none; 43 | } 44 | 45 | .card a:hover h2 { 46 | text-decoration: underline; 47 | } 48 | 49 | .link .card:hover a { 50 | text-decoration: underline; 51 | } 52 | 53 | /* Make the whole card clickable. */ 54 | /* Prevents text highlighting. */ 55 | .card a::after { 56 | position: absolute; 57 | top: 0; 58 | left: 0; 59 | content: ""; 60 | display: block; 61 | width: 100%; 62 | height: 100%; 63 | } 64 | -------------------------------------------------------------------------------- /05_05/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, 3 | Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; 4 | font-size: 20px; 5 | } 6 | 7 | img { 8 | width: 100%; 9 | height: auto; 10 | } 11 | 12 | .sr-only { 13 | clip: rect(1px, 1px, 1px, 1px); 14 | clip-path: inset(50%); 15 | height: 1px; 16 | width: 1px; 17 | margin: -1px; 18 | overflow: hidden; 19 | padding: 0; 20 | position: absolute; 21 | } 22 | 23 | .card-list { 24 | margin: 2rem; 25 | padding: 0; 26 | display: flex; 27 | justify-content: space-between; 28 | list-style-type: none; 29 | gap: 2rem; 30 | } 31 | 32 | .card { 33 | position: relative; 34 | width: calc(100% / 3); 35 | border: 3px solid black; 36 | border-radius: 1rem; 37 | padding: 1rem; 38 | } 39 | 40 | .card:hover a { 41 | text-decoration: underline; 42 | } 43 | 44 | .card a { 45 | color: black; 46 | text-decoration: none; 47 | } 48 | 49 | .eyebrow { 50 | margin: 0.5rem 0; 51 | padding: 0; 52 | list-style-type: none; 53 | display: flex; 54 | gap: 0.8rem; 55 | } 56 | 57 | .eyebrow a { 58 | text-decoration: underline; 59 | text-transform: uppercase; 60 | font-size: 70%; 61 | } 62 | 63 | .readmore { 64 | text-decoration: underline; 65 | text-align: end; 66 | } 67 | -------------------------------------------------------------------------------- /06_04/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, 3 | Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; 4 | font-size: 20px; 5 | } 6 | 7 | img { 8 | width: 100%; 9 | height: auto; 10 | } 11 | 12 | .sr-only { 13 | clip: rect(1px, 1px, 1px, 1px); 14 | clip-path: inset(50%); 15 | height: 1px; 16 | width: 1px; 17 | margin: -1px; 18 | overflow: hidden; 19 | padding: 0; 20 | position: absolute; 21 | } 22 | 23 | .card-list { 24 | margin: 2rem; 25 | padding: 0; 26 | display: flex; 27 | justify-content: space-between; 28 | list-style-type: none; 29 | gap: 2rem; 30 | } 31 | 32 | .card { 33 | position: relative; 34 | width: calc(100% / 3); 35 | border: 3px solid black; 36 | border-radius: 1rem; 37 | padding: 1rem; 38 | } 39 | 40 | .card:hover a { 41 | text-decoration: underline; 42 | } 43 | 44 | .card a { 45 | color: black; 46 | text-decoration: none; 47 | } 48 | 49 | .eyebrow { 50 | margin: 0.5rem 0; 51 | padding: 0; 52 | list-style-type: none; 53 | display: flex; 54 | gap: 0.8rem; 55 | } 56 | 57 | .eyebrow a { 58 | text-decoration: underline; 59 | text-transform: uppercase; 60 | font-size: 70%; 61 | } 62 | 63 | .readmore { 64 | text-decoration: underline; 65 | text-align: end; 66 | } 67 | -------------------------------------------------------------------------------- /05_05/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |32 | This is an example of a basic mobile navigation menu with accessibility 33 | built in. 34 |
35 |36 | When you tab out of the menu, it automatically closes and focus is sent 37 | to the next focusable item, the link inside this 38 | paragraph. 39 |
40 |
15 |
24 |
33 |
14 | Once upon a time there was a card. The card had two friends.
22 |
25 |
29 | The middle card always wanted to be in the middle of the pack.
33 |
36 |
40 | 48 | The last card was always last, even when the text direction was set to 49 | RTL. 50 |
51 |52 | 53 |
54 |41 | This is an example of a basic multi-level navigation menu with 42 | accessibility built in. 43 |
44 |45 | Tabbing through the menu, you find links to top-level links, and buttons 46 | to open sub-level menus. 47 |
48 |49 | When you tab out of the sub-level menu, it automatically closes and 50 | focus is sent to the next focusable item, either in the menu or in the 51 | document. 52 |
53 |