forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try out an icon instead of a button with text
- Loading branch information
Showing
3 changed files
with
16 additions
and
3 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,4 +1,4 @@ | ||
<button type="button" class="btn btn-outline ml-3 toggle-images" id="js-toggle-images" aria-selected="false" aria-label="Toggle images"> | ||
<span id="js-hide-text">{% data ui.toggle_images.hide %}</span> | ||
<span id="js-show-text">{% data ui.toggle_images.show %}</span> | ||
<button class="toggle-images tooltipped tooltipped-n" id="js-toggle-images"> | ||
<span id="js-hide-icon" aria-label="{% data ui.toggle_images.hide %}">{% octicon "eye-closed" %}</span> | ||
<span id="js-show-icon" aria-label="{% data ui.toggle_images.show %}">{% octicon "eye" %}</span> | ||
</button> |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
button.toggle-images { | ||
opacity: 1; | ||
transition: 1s; | ||
background-color: var(--color-auto-blue-5); | ||
color: var(--color-text-inverse); | ||
position: fixed; | ||
display: block; | ||
width: 40px; | ||
height: 40px; | ||
border-radius: 50%; | ||
border: none; | ||
} |