Niedzielski has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/383962 )

Change subject: Fix: hide content for screen readers only
......................................................................

Fix: hide content for screen readers only

Hide formatting elements from the screen but not from screen readers
per: http://localhost:3000/wiki/MediaWiki:Common.css. A common example
is the fraction bar used to indicate an arithmetic division:
http://localhost:3000/wiki/1_+_1_+_1_+_1_+_⋯/793725799.

Change-Id: I4650ed0d7e8eb4a4c48af01e5e1fa7a75375e130
---
M src/common/components/content/styles/content.css
M src/common/components/content/styles/templates/plainlist.css
M src/common/data-clients/page-redirect.ts
3 files changed, 16 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/marvin refs/changes/62/383962/1

diff --git a/src/common/components/content/styles/content.css 
b/src/common/components/content/styles/content.css
index a6fab4c..439ae01 100644
--- a/src/common/components/content/styles/content.css
+++ b/src/common/components/content/styles/content.css
@@ -100,3 +100,17 @@
 .Content .metadata {
   overflow-x: auto;
 }
+
+/* Accessibility */
+
+/* Hide (formatting) elements from screen, but not from screenreaders.
+   http://localhost:3000/wiki/MediaWiki:Common.css/804730289
+   http://localhost:3000/wiki/1_+_1_+_1_+_1_+_⋯/793725799 */
+.Content .visualhide {
+  position: absolute;
+  left: -10000px;
+  top: auto;
+  width: 1px;
+  height: 1px;
+  overflow: hidden;
+}
diff --git a/src/common/components/content/styles/templates/plainlist.css 
b/src/common/components/content/styles/templates/plainlist.css
index 05005a6..e157163 100644
--- a/src/common/components/content/styles/templates/plainlist.css
+++ b/src/common/components/content/styles/templates/plainlist.css
@@ -1,4 +1,4 @@
-/* http://localhost:3000/wiki/Template:Plainlist
+/* http://localhost:3000/wiki/Template:Plainlist/628943872
    http://localhost:3000/wiki/China/804850001 (infobox) */
 
 .Content .plainlist > ul {
diff --git a/src/common/data-clients/page-redirect.ts 
b/src/common/data-clients/page-redirect.ts
index 0644ff7..45b48ba 100644
--- a/src/common/data-clients/page-redirect.ts
+++ b/src/common/data-clients/page-redirect.ts
@@ -7,7 +7,7 @@
  * sending custom request headers like Api-User-Agent) will fail in most
  * current browsers due to a [spec bug].
  *
- * [redirect pages]: https://www.mediawiki.org/wiki/Help:Redirects
+ * [redirect pages]: http://localhost:3000/wiki/Help:Redirects
  * [spec bug]: https://github.com/whatwg/fetch/issues/204
  */
 export type PageRedirect = boolean;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4650ed0d7e8eb4a4c48af01e5e1fa7a75375e130
Gerrit-PatchSet: 1
Gerrit-Project: marvin
Gerrit-Branch: master
Gerrit-Owner: Niedzielski <sniedziel...@wikimedia.org>
Gerrit-Reviewer: Sniedzielski <sniedziel...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to