Skip to content

Commit e7842ca

Browse files
adding tabindex to make hover effect accessible by keyboard
1 parent 8025cec commit e7842ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h2 id="none">object-fit: none</h2>
4646

4747
<p>Combining <code>object-fit</code> and <code>object-position</code> with CSS transitions can lead to some pretty interesting effects for image or video galleries.</p>
4848

49-
<img src="flowers.jpg" class="none" alt="when hovered over the image element expands to reveal more of the image">
49+
<img src="flowers.jpg" class="none" alt="when hovered over the image element expands to reveal more of the image" tabindex="0">
5050

5151
<h2 id="position">object-position</h2>
5252

0 commit comments

Comments
 (0)