-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Link Examples: Remove link 4 and Strengthen Visual Focus Indicator
Per issue #228, make changes to examples/link/link.html: 1. Remove link 4, which used a background image that disappears in Windows high contrast mode. 2. Edit introduction, states and properties table, and source code section to reflect removal of link 4. 3. Change CSS to fix disappearance of custom focus ring on link 3. 4. Change CSS to make the custom focus ring more visually distinct.
- Loading branch information
Showing
2 changed files
with
24 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,22 @@ | ||
[role="link"] | ||
{ | ||
color: #009; | ||
background: transparent; | ||
text-decoration: underline; | ||
border: thin solid transparent; | ||
[role="link"] { | ||
color: #009; | ||
background: transparent; | ||
text-decoration: underline; | ||
} | ||
|
||
[role="link"]:hover, [role="link"]:focus, [role="link"]:active | ||
{ | ||
color:#000; | ||
border-color: #fc0; | ||
cursor: pointer; | ||
[role="link"]:hover, | ||
[role="link"]:focus, | ||
[role="link"]:hover::before, | ||
[role="link"]:focus::before { | ||
color:#000; | ||
cursor: pointer; | ||
outline: .2em solid hsl(219, 63%, 44%); | ||
outline-offset: .2em; | ||
} | ||
|
||
[role="link"].link3:before { | ||
[role="link"].link3::before { | ||
display: block; | ||
content: url('../images/w3c-logo.png'); | ||
width:153px; | ||
height:104px; | ||
height:104px; | ||
} | ||
|
||
[role="link"].link4 { | ||
display: block; | ||
background-repeat: no-repeat; | ||
background-image: url('../images/w3c-logo.png'); | ||
width:153px; | ||
height:104px; | ||
} | ||
|
||
td div { | ||
margin-bottom: 0.25em; | ||
font-weight: bold; | ||
} |
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