Skip to content

Commit

Permalink
fix: change title attribute example
Browse files Browse the repository at this point in the history
Change the `title` attribute interactive example as the current example use case is problematic from an accessibility perspective and is not the best use case to use for the example.

fix #1822
  • Loading branch information
Schalk Neethling committed May 24, 2021
1 parent 8058f0b commit 66c1895
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
@@ -1,4 +1,6 @@
<p>The three primary web development technologies are
<abbr title="Hypertext Markup Language">HTML</abbr>,
<abbr title="Cascading Stylesheets">CSS</abbr>, and
JavaScript.</p>
<p>Use the <code>title</code> attribute on an <code>iframe</code> to clearly identify the content of the <code>iframe</code> to screen readers.</p>

<div class="frame-container">
<iframe title="Wikipedia page for the HTML language" src="https://en.m.wikipedia.org/wiki/HTML"></iframe>
<iframe title="Wikipedia page for the CSS language" src="https://en.m.wikipedia.org/wiki/CSS"></iframe>
</div>
@@ -1,3 +1,13 @@
.output {
font: 1rem 'Fira Sans', sans-serif;
}

.output .frame-container {
display: flex;
gap: 24px;
}

.output .frame-container iframe {
height: 100%;
width: 50%;
}

0 comments on commit 66c1895

Please sign in to comment.