summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/web/dropdown.css
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2017-02-21 22:56:56 +0100
committerDavid Lawrence <dkl@mozilla.com>2017-02-21 22:56:56 +0100
commit318b9027db03bc7397fa8072811db33783d29976 (patch)
tree2cd3b8dd9848a4678402f473433e5e817ad4b2e0 /extensions/BugModal/web/dropdown.css
parentbbd5ffb01a1f9feb277dd33e8b4333840fb26949 (diff)
downloadbugzilla-318b9027db03bc7397fa8072811db33783d29976.tar.gz
bugzilla-318b9027db03bc7397fa8072811db33783d29976.tar.xz
Bug 1280363 - [a11y] Make the Actions menu button accessible for keyboard and screen readers
Diffstat (limited to 'extensions/BugModal/web/dropdown.css')
-rw-r--r--extensions/BugModal/web/dropdown.css52
1 files changed, 52 insertions, 0 deletions
diff --git a/extensions/BugModal/web/dropdown.css b/extensions/BugModal/web/dropdown.css
new file mode 100644
index 000000000..977a7a57f
--- /dev/null
+++ b/extensions/BugModal/web/dropdown.css
@@ -0,0 +1,52 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This Source Code Form is "Incompatible With Secondary Licenses", as
+ * defined by the Mozilla Public License, v. 2.0. */
+
+/* The container <div> - needed to position the dropdown content */
+.dropdown {
+ position: relative;
+ display: inline-block;
+}
+
+/* Dropdown Content (Hidden by Default) */
+.dropdown-content {
+ position: absolute;
+ background-color: #eee;
+ min-width: 120px;
+ z-index: 1;
+ text-align: left;
+ margin: 0;
+ padding: 0;
+ border: 1px solid #ddd;
+ -webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
+ -moz-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
+ box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
+ list-style: none;
+}
+
+.dropdown-content.menu-up {
+ bottom: 100%;
+}
+
+.dropdown-separator {
+ border-bottom: 1px solid #ddd;
+}
+
+/* Links inside the dropdown */
+.dropdown-content a {
+ white-space: nowrap;
+ background-color: #eee;
+ color: black !important;
+ padding: 4px 8px;
+ text-decoration: none !important;
+ display: block;
+}
+
+/* Change color of dropdown links on hover */
+.dropdown-content li .active {
+ text-decoration: none;
+ background-color: #39f;
+}