Commit graph

1527 commits

Author SHA1 Message Date
Translation updater bot 7af1f28891 Localisation updates from https://translatewiki.net.
Change-Id: Iccedf081c1904a00f79aede75a323a0a50f53019
2017-06-12 22:45:27 +02:00
WMDE-Fisch 5f8bf83849 Improve support for screenreaders
This patch improves screenreader support by applying some basic
rules and improving the OOjs UI usage. Things done here:

- make use of 'aria-label' attribute to label interactive buttons
- use connect method on help button to allow keyboard interaction
- give hint on help button that it opens a dialog
- communicate state of autoexpand button
- add attributes to make screenreaders understand the accordion
mechanism if the slider widget

See:
https://www.w3.org/TR/wai-aria-practices/#button
https://www.w3.org/TR/wai-aria-practices/#accordion

Bug: T165489
Change-Id: I7a174e5971a751ec54d4d5115d5441f0a577c103
2017-06-12 09:14:22 +00:00
Translation updater bot 40bb26c238 Localisation updates from https://translatewiki.net.
Change-Id: I0ed04cd940e9fd4811b67594db3330c3022fcff0
2017-06-11 22:39:02 +02:00
Translation updater bot 0ab3a9cfa4 Localisation updates from https://translatewiki.net.
Change-Id: I3abc72b56770d4b43851b9c4aa4cdf46f0d9de65
2017-06-11 00:29:40 +02:00
Translation updater bot 1ccdc5f2d2 Localisation updates from https://translatewiki.net.
Change-Id: I9176fff792719eec451068251253b3388d1407b0
2017-06-09 22:56:05 +02:00
Chad Horohoe 0687de3fbd Also drop Revision typehint from $oldRev
Already did this in $oldRev, this follows up I4c483d7

Bug: T167359
Change-Id: I8b74932caf1188005155b4cbd8a1ff76066b1604
2017-06-08 15:32:01 -07:00
Translation updater bot df5bb3a83e Localisation updates from https://translatewiki.net.
Change-Id: I593c6814dd539fa226c54dc5b14979ef613299c3
2017-06-08 23:09:08 +02:00
aude 71c586a351 Handle possible null $oldRev in DiffViewHeader hook handler
Sometimes $oldRev can be null (e.g. not a Revision, but
maybe is a missing revision), and also not sure we can be
certain about $newRev being a Revision object.

Bug: T167359
Change-Id: I4c483d711f2ec07a918c708a473aff1b2c150cf5
2017-06-07 22:19:16 -04:00
Translation updater bot 5de737982a Localisation updates from https://translatewiki.net.
Change-Id: Iec47d7dcc035722d5a5ab4448f2668d4f88cedf3
2017-06-07 22:49:29 +02:00
Amir Sarabadani ef55b36ab0 Add CODE_OF_CONDUCT.md
Bug: T165540
Change-Id: I5c6cfa4ff55bcfce749b3b7c1bc9ec8976839c96
2017-06-07 15:44:12 +04:30
Translation updater bot 169979402e Localisation updates from https://translatewiki.net.
Change-Id: I38a259fa62a4a002fd4e07e8f44319ea47a85bdb
2017-06-06 22:42:58 +02:00
jenkins-bot 172b9c1832 Merge "Adjust pin layout to new OOjs UI defaults" 2017-06-06 11:42:49 +00:00
WMDE-Fisch fe8bddd881 Adjust pin layout to new OOjs UI defaults
Bug: T166803
Change-Id: I3153b948f3e0a069d6a9869a07e235fcbf8b9e57
2017-06-06 13:04:15 +02:00
jenkins-bot 9c92ef5188 Merge "Adjust z-indexes to work with Modern skin" 2017-06-06 10:56:09 +00:00
jenkins-bot fae82a1a3a Merge "Do not assume that revIds increase in time" 2017-06-06 10:35:01 +00:00
WMDE-Fisch ae96989d0b Disable the RevisionSlider for screenreaders
Until the sliding mechanism has full support to work with screen-
readers the tool will be disabled for them to avoid unnecessary
confusion.

Bug: T165489
Change-Id: Id0da2c891040ac7e6f1b6ce5ba5f65b727d3cb07
2017-06-06 08:28:15 +00:00
Translation updater bot 6bd728928c Localisation updates from https://translatewiki.net.
Change-Id: Iee5bffa445f9e4ccdb3da7e919c763f2a7ed82af
2017-06-05 23:13:07 +02:00
Translation updater bot a3616f4d37 Localisation updates from https://translatewiki.net.
Change-Id: I5a699e022a9e51410e72641fb1b9f8a0707bbd40
2017-06-04 23:30:21 +02:00
Translation updater bot 03157e855c Localisation updates from https://translatewiki.net.
Change-Id: I9bcbae7258bd302a9da086736e122e45efbbd3b5
2017-06-03 22:46:45 +02:00
Translation updater bot ba7fa92ffb Localisation updates from https://translatewiki.net.
Change-Id: I58d83716a1c9d8ca7b650639e0334ccf546d870d
2017-06-02 22:43:55 +02:00
Translation updater bot d7a61ea615 Localisation updates from https://translatewiki.net.
Change-Id: Ic085ad6812b72086c14600570e47a41abf8de1d2
2017-06-01 23:13:19 +02:00
WMDE-Fisch 0525f0bdb2 Do not assume that revIds increase in time
This patch fixes issues with the RevisonSlider assuming that the higher
revision id belongs to the newer revision. Min/Max methods to decide what
the diff and what the oldid is are removed and the usage of methods is
adjusted accordingly.

Also the test for switchover pointers is removed since this will not work
with the patch.

Bug: T164455
Change-Id: If5d9cbb8ebd872aee376d249942e6881c8edb984
2017-06-01 18:29:22 +02:00
WMDE-Fisch 9e977cec67 Add icon styles to extension.json
The used icons are not loaded in core by default anymore so we need
to load them manualy.

Change-Id: Ic55bf7c3ce531472153c10e75dbbc6a623ad4eb2
2017-06-01 17:05:36 +02:00
WMDE-Fisch 323984103e Update to banana 0.6.0
Change-Id: I633de137917cfb2e5e50f40a215e31aaf3579016
2017-05-31 16:11:46 +02:00
Translation updater bot 831b6081f3 Localisation updates from https://translatewiki.net.
Change-Id: I63c667e173948a5f840d2c3c1bbe39051c6ab345
2017-05-30 22:42:14 +02:00
Translation updater bot d37f59c141 Localisation updates from https://translatewiki.net.
Change-Id: I848effe9cdf5b7ed75efe634a495a5e03617b199
2017-05-29 23:26:53 +02:00
Translation updater bot ce75740359 Localisation updates from https://translatewiki.net.
Change-Id: I07e9bdf5f94a355d232f83a7b78028e083fd0968
2017-05-28 22:34:52 +02:00
Translation updater bot f17e52a88f Localisation updates from https://translatewiki.net.
Change-Id: I1ee22944d603ea2e2e38cc98e785d7afc20bd995
2017-05-26 22:46:04 +02:00
Translation updater bot f79fc28adc Localisation updates from https://translatewiki.net.
Change-Id: Ib9b85b04de7091672ead383aec50405eff33bac0
2017-05-25 22:50:00 +02:00
Translation updater bot 9ee6c04352 Localisation updates from https://translatewiki.net.
Change-Id: Iad5f5830bdd415cec0b15c029a4fa2a967dea0e5
2017-05-24 22:57:09 +02:00
WMDE-Fisch fce6b2e950 Adjust z-indexes to work with Modern skin
Bug: T166209
Change-Id: I54e7310d215c44ef3e139e940bf61dbee52bf5a8
2017-05-24 13:41:31 +00:00
jenkins-bot b5669a8157 Merge "Do not use the main config for extension configuration options" 2017-05-24 08:23:54 +00:00
Translation updater bot 0b57f65f57 Localisation updates from https://translatewiki.net.
Change-Id: If489f4fd13d65f9e9ed08ff0415a307bffdbff77
2017-05-23 23:01:47 +02:00
jenkins-bot d02f2e066b Merge "Fix handling of escape key" 2017-05-23 12:54:25 +00:00
pppery 4ed9851610 Fix handling of escape key
Previously, pressing ESC aborted the dragging of the slider, but this
was broken by I64cca7a7547310bee64ad95f500b722c362bbb45, which refactored
uses of a variable that was previously a closure into two separate functions.

Bug: T140965
Change-Id: I6b7bc383128d8c7d99da469706bff881f1329cd9
2017-05-22 15:22:55 -04:00
Translation updater bot a793fe4620 Localisation updates from https://translatewiki.net.
Change-Id: I2193ec203136c1307298ed7bf52ec533f1a68d2d
2017-05-20 22:49:26 +02:00
Florian Schmidt 5173fe59d4 Do not use the main config for extension configuration options
This currently just works, because the currently used backend are
global variables. Once the main config uses a more scoped/focused
backend, such as a HashConfig or a database-based config, requesting
extension configurations from it will not work anymore.

Therefore, use the extensions Config object to request configuration
options for the extension.

Change-Id: Iea02d3c284f9a0e12abff33e3624dce9585ab51c
2017-05-20 11:54:52 +02:00
Translation updater bot c7be55dbc5 Localisation updates from https://translatewiki.net.
Change-Id: Ic8c0a24fee29e5491a57199645385af9fa6cd453
2017-05-18 22:53:23 +02:00
Translation updater bot 6ff0e3dea7 Localisation updates from https://translatewiki.net.
Change-Id: I33bd07cc55cbf5cfaff39c18a1968b0186b7e0ee
2017-05-14 22:39:54 +02:00
Translation updater bot 2f79fa2eb3 Localisation updates from https://translatewiki.net.
Change-Id: Iaa06c31d693afab51067945b1cbb140ad34b3e5e
2017-05-12 23:11:21 +02:00
jenkins-bot 6dc7cd7b39 Merge "Split ext.RevisionSlider.lazy into Js and Css modules" 2017-05-12 11:02:37 +00:00
Translation updater bot b12880ffe0 Localisation updates from https://translatewiki.net.
Change-Id: I62be13ea49262c2ba01b874fc80d727627337874
2017-05-11 23:28:12 +02:00
addshore ed48f4ef3b Split ext.RevisionSlider.lazy into Js and Css modules
Bug: T164893
Change-Id: Ideb82a24aa852067acc60e512318a26f88f2d395
2017-05-11 10:45:57 +02:00
Translation updater bot 7c63d7cdc2 Localisation updates from https://translatewiki.net.
Change-Id: I6a0b0f31fe600439afa35c35f62ed8ddd6b1eb9e
2017-05-09 23:02:26 +02:00
Andrew-WMDE 96a366ddb0 Update help dialogue to explain new sliding mechanism
- works with the setting var to switch help text
 - minified new SVGs with svgo
 - adjusted new SVGs dimensions
 - updated accompanying text

Bug: T162773
Change-Id: I3da66a006977fa6b1999686ba4f415e891f4ea02
2017-05-09 19:50:39 +02:00
jenkins-bot 9f1a91dc6a Merge "Convert touch events to mouse events on pointers" 2017-05-09 10:27:15 +00:00
Translation updater bot f1beae0e17 Localisation updates from https://translatewiki.net.
Change-Id: Ia0c8a326f2bf0e879044ca57bf26dfa1fa7ee23a
2017-05-08 22:53:55 +02:00
WMDE-Fisch 31b9fe31ef Convert touch events to mouse events on pointers
This will make the pointers work on touch devices. The events responsible
for the touch drag and move are converted to mouse actions that will
trigger the draggable.

When using Chrome on touch devices and zooming the offset of elements
calculated by jQuery is wrong. There is a workaround that seems to work
and also seems to not break behavior with normal browsers and on other
devices. Since this only seems to be a problem in Chrome the fix will
only applied to Chrome browsers to avoid performance los on others.

Also introduced a script file for static utility methods.

Bug: T164249
Change-Id: I245f77eb836afded249f3b5ebb7129dab08d0017
2017-05-08 12:55:31 +02:00
Translation updater bot 2b666e4dc3 Localisation updates from https://translatewiki.net.
Change-Id: I8826d09691a2abd3954db65dcde3daca441ddafa
2017-05-06 22:58:23 +02:00
Translation updater bot 117c25f856 Localisation updates from https://translatewiki.net.
Change-Id: I39e11d5500ae61c8140302963cc825d0f3d0708e
2017-05-05 22:47:45 +02:00