-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
10 changes: 6 additions & 4 deletions
10
live-examples/html-examples/global-attributes/attribute-title.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 |
---|---|---|
@@ -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> |
10 changes: 10 additions & 0 deletions
10
live-examples/html-examples/global-attributes/css/attribute-title.css
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 |
---|---|---|
@@ -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%; | ||
} |