Matthias Mullie has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/94877


Change subject: Make actions box available to non-JS users
......................................................................

Make actions box available to non-JS users

Action boxes (currently only used for moderation) are represented by some icon
(.flow-actions-link) that, when clicked, display a flyout window
(.flow-actions-flyout)

Non-JS users won't have javascript bind the event to display the flyout, so
let's make sure the functionality is not hidden from them.

Change-Id: I0f989bb5c1df5c0971df1bf141fad4ce4fc489ba
---
M modules/base/styles/actionbox.less
1 file changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/77/94877/1

diff --git a/modules/base/styles/actionbox.less 
b/modules/base/styles/actionbox.less
index 714b09d..fe2bf03 100644
--- a/modules/base/styles/actionbox.less
+++ b/modules/base/styles/actionbox.less
@@ -47,3 +47,14 @@
                }
        }
 }
+
+// for non-JS users, hide the action link & show flyout immediately
+.client-nojs {
+       .flow-actions-link {
+               display: none;
+       }
+
+       .flow-actions-flyout {
+               display: block;
+       }
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/94877
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0f989bb5c1df5c0971df1bf141fad4ce4fc489ba
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to