-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disclosure examples for FAQ and image description: Update accessibili…
…ty features documentation and implement coding practices in latest code guide (pull #1814) * Added accessibility features documentation for high contrast support. * Renamed image description HTML file and updated references. * Updated JS code to implement latest practices from APG * Improved JS comments. Co-authored-by: Matt King <a11yThinker@gmail.com>
- Loading branch information
Showing
13 changed files
with
230 additions
and
244 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,48 @@ | ||
dl.faq button { | ||
margin: 0; | ||
padding: 0; | ||
margin-top: 1em; | ||
margin-top: 16px; | ||
padding: 4px 8px; | ||
font-weight: bold; | ||
font-size: 110%; | ||
border: thin solid transparent; | ||
border: none; | ||
background-color: transparent; | ||
padding-left: 0.125em; | ||
border-radius: 5px; | ||
} | ||
|
||
dl dd { | ||
margin: 0; | ||
padding: 0; | ||
margin-left: 1.5em; | ||
padding-bottom: 20px; | ||
border-bottom: 2px solid #777; | ||
} | ||
|
||
dl.faq .desc { | ||
margin: 0; | ||
padding: 0.5em; | ||
margin-top: 0.25em; | ||
padding: 0.25em; | ||
font-size: 110%; | ||
display: none; | ||
background-color: #fffedb; | ||
background-color: #fed; | ||
} | ||
|
||
dl.faq button:hover, | ||
dl.faq button:focus { | ||
background-color: #eee; | ||
} | ||
|
||
dl.faq button:focus { | ||
border-color: #630; | ||
} | ||
|
||
dl.faq button:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
dl.faq button:active { | ||
background-color: #bbb; | ||
padding: 2px 6px; | ||
background-color: #def; | ||
border: 2px solid #005a9c; | ||
cursor: pointer; | ||
} | ||
|
||
dl.faq button[aria-expanded="false"]::before { | ||
content: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpolygon points='1 1, 1 11, 8 6' fill='currentColor' stroke= 'currentColor' /%3E%3C/svg%3E%0A"); | ||
padding-right: 0.35em; | ||
content: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' style='forced-color-adjust: auto;'%3E%3Cpolygon points='1 1, 1 11, 8 6' fill='currentColor' stroke= 'currentColor' /%3E%3C/svg%3E%0A"); | ||
position: relative; | ||
left: -2px; | ||
} | ||
|
||
dl.faq button[aria-expanded="true"]::before { | ||
content: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpolygon points='1 1, 11 1, 6 8' fill='currentColor' stroke= 'currentColor' /%3E%3C/svg%3E "); | ||
padding-right: 0.35em; | ||
content: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' style='forced-color-adjust: auto;'%3E%3Cpolygon points='1 1, 11 1, 6 8' fill='currentColor' stroke= 'currentColor' /%3E%3C/svg%3E "); | ||
position: relative; | ||
left: -4px; | ||
top: 2px; | ||
} |
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,45 @@ | ||
figure button { | ||
margin: 0; | ||
margin-top: 1em; | ||
padding: 4px 8px; | ||
font-weight: bold; | ||
font-size: 110%; | ||
border: none; | ||
background-color: transparent; | ||
border-radius: 5px; | ||
} | ||
|
||
figure button:hover, | ||
figure button:focus { | ||
padding: 2px 6px; | ||
background-color: #def; | ||
border: 2px solid #005a9c; | ||
cursor: pointer; | ||
} | ||
|
||
figure button[aria-expanded="false"]::before { | ||
content: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' style='forced-color-adjust: auto;'%3E%3Cpolygon points='1 1, 1 11, 8 6' fill='currentColor' stroke= 'currentColor' /%3E%3C/svg%3E%0A"); | ||
position: relative; | ||
left: -2px; | ||
} | ||
|
||
figure button[aria-expanded="true"]::before { | ||
content: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' style='forced-color-adjust: auto;'%3E%3Cpolygon points='1 1, 11 1, 6 8' fill='currentColor' stroke= 'currentColor' /%3E%3C/svg%3E "); | ||
position: relative; | ||
left: -4px; | ||
top: 2px; | ||
} | ||
|
||
figure figcaption { | ||
text-align: left; | ||
} | ||
|
||
figure h3 { | ||
margin: 0; | ||
padding: 0; | ||
margin-top: 1em; | ||
} | ||
|
||
figure .long_desc table tr:nth-child(even) { | ||
background-color: #fed; | ||
} |
43 changes: 0 additions & 43 deletions
43
examples/disclosure/css/disclosure-img-long-description.css
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.