summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-09-21 21:45:40 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-09-21 21:45:40 +0000
commit936344ea5549a724fa504dec9df98fbc49f2dc01 (patch)
treeffe68248b90fbbee7da58d879c166370a49f7e76 /modules
parenta8a7a023b575a6d2ed646445c3853b0a029d1628 (diff)
downloadbrdo-936344ea5549a724fa504dec9df98fbc49f2dc01.tar.gz
brdo-936344ea5549a724fa504dec9df98fbc49f2dc01.tar.bz2
#897638 by casey, sun, mgifford, et al: Allow .element-invisible to work with focusable elements like links.
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.base.css16
1 files changed, 12 insertions, 4 deletions
diff --git a/modules/system/system.base.css b/modules/system/system.base.css
index 785acf47c..a6daadd2c 100644
--- a/modules/system/system.base.css
+++ b/modules/system/system.base.css
@@ -223,10 +223,8 @@ html.js .js-hide {
*
* Used for information required for screen-reader users to understand and use
* the site where visual display is undesirable. Information provided in this
- * manner should be kept concise, to avoid unnecessary burden on the user. Must
- * not be used for focusable elements (such as links and form elements) as this
- * causes issues for keyboard only or voice recognition users. "!important" is
- * used to prevent unintentional overrides.
+ * manner should be kept concise, to avoid unnecessary burden on the user.
+ * "!important" is used to prevent unintentional overrides.
*/
.element-invisible {
position: absolute !important;
@@ -235,6 +233,16 @@ html.js .js-hide {
}
/**
+ * The .element-focusable class extends the .element-invisible class to allow
+ * the element to be focusable when navigated to via the keyboard.
+ */
+.element-invisible.element-focusable:active,
+.element-invisible.element-focusable:focus {
+ position: static !important;
+ clip: auto;
+}
+
+/**
* Markup free clearing.
*
* @see http://perishablepress.com/press/2009/12/06/new-clearfix-hack