summaryrefslogtreecommitdiffstats
path: root/public/stylesheets
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-03-20 09:34:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-03-20 09:34:26 +0000
commiteaea4e9fee7e70c6df4db5b749fbe94937bbd35c (patch)
tree2c8fff46458f1aa05d2fe6202d61319bf2024a81 /public/stylesheets
parente63bf1d5970cec0e63029dd1deb36539fc844dae (diff)
downloadredmine-eaea4e9fee7e70c6df4db5b749fbe94937bbd35c.tar.gz
redmine-eaea4e9fee7e70c6df4db5b749fbe94937bbd35c.zip
Improve accessibility for icon-only links by adding hidden text (#21805).
Patch by Daniel Ritz. git-svn-id: http://svn.redmine.org/redmine/trunk@15271 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/stylesheets')
-rw-r--r--public/stylesheets/application.css11
1 files changed, 11 insertions, 0 deletions
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index fbd2b7a05..f1d92de5f 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -1113,6 +1113,17 @@ a.close-icon:hover {background-image:url('../images/close_hl.png');}
background-repeat: no-repeat;
padding-left: 16px;
}
+a.icon-only {
+ display: inline-block;
+ width: 0;
+ overflow: hidden;
+ padding-top: 0;
+ padding-bottom: 0;
+ font-size: 8px;
+}
+a.icon-only::after {
+ content: "&nbsp;";
+}
.icon-add { background-image: url(../images/add.png); }
.icon-edit { background-image: url(../images/edit.png); }