Commit Graph

69710 Commits

Author SHA1 Message Date
Peter Vágner 5ccbcf02e2 Several changes improving accessibility of the dialogs
- Wrapped all the modals inside a react-focus-trap component disabling
keyboard navigation outside the modal dialogs
- Disabled our custom key handling at dialog level. Cancelling on esc
key is now handled via FocusTrap component.
- Removed onEnter prop from the BaseDialog component. Dialogs that
submit data all now embed a form with onSubmit handler. And since
keyboard focus is now managed better via FocusTrap it no longer makes
sense for the other dialog types. Fixes
https://github.com/vector-im/riot-web/issues/5736
- Set aria-hidden on the matrixChat outer node when showing dialogs to
disable navigating outside the modals by using screen reader specific
features.
2017-12-03 21:38:21 +01:00
Richard Lewis c9b8aab0e0 Workings for future posterity - Can't access iframe content from parent. iframe needs to initiate. Postmessage data up the stack. 2017-12-03 19:44:59 +00:00
Richard Lewis 380625241e Green camera icon 2017-12-03 11:25:52 +00:00
Richard Lewis 3a89b90e57 Add stub handler for image snapshot 2017-12-03 11:25:15 +00:00
Richard Lewis 26c6c25a4c Add dom-to-image dep. 2017-12-03 11:23:44 +00:00
Moo 452fe44795 Added translation using Weblate (Lithuanian) 2017-12-01 22:15:02 +00:00
Luke Barnard b0d115a64a Implement renumeration of ordered tags upon collision
I was being bitten by this enough for me to want to fix it. This implementation really ought to be improved such that it doesnt tend towards being broken the more it is used.
2017-12-01 18:20:38 +00:00
Luke Barnard e80c4fadea Linting 2017-12-01 18:18:48 +00:00
Richard Lewis dd7358cbb4 Use strict equality. 2017-12-01 16:39:07 +00:00
Richard Lewis 9dabf19d1b Improve readability. 2017-12-01 16:35:55 +00:00
Richard Lewis 81f7f805fa Fix check 2017-12-01 16:31:39 +00:00
Richard Lewis 024aefe131 Use ES6 style exports. 2017-12-01 16:17:18 +00:00
Richard Lewis 58616a45ef Add API endpoints to get current widget postMessage API version and supported API versions. 2017-12-01 15:56:30 +00:00
Richard Lewis 5239729e8e Return a response to widget postMessage request (inline with scalarMessaging API). 2017-12-01 14:56:27 +00:00
Richard Lewis 81fdccb109 Add API description comment. 2017-12-01 14:44:14 +00:00
Weblate ef1faff4b2 Merge remote-tracking branch 'origin/develop' into develop 2017-12-01 14:18:22 +00:00
Luke Barnard 641add4964 Fix one kind of scroll jump
by calling onWidgetLoad when the <img> in MImageBody loads
2017-12-01 14:18:13 +00:00
Weblate 04ed2a3d09 Merge remote-tracking branch 'origin/develop' into develop 2017-12-01 14:12:39 +00:00
Luke Barnard cc4890f0b8 Fix TagPanel bg on status theme 2017-12-01 14:12:31 +00:00
Weblate b8d7881663 Merge remote-tracking branch 'origin/develop' into develop 2017-12-01 12:04:25 +00:00
Luke Barnard b26cf23574 Merge pull request #1641 from matrix-org/luke/tag-panel-shift-click-semantics
Implement shift-click and ctrl-click semantics for TP
2017-12-01 12:04:21 +00:00
Weblate 7924ee65e0 Merge remote-tracking branch 'origin/develop' into develop 2017-12-01 12:04:15 +00:00
Luke Barnard 0aaae9bca5 Merge pull request #5751 from vector-im/luke/refactor-keycode-to-keyboard
Update imports for accessing KeyCode
2017-12-01 12:04:10 +00:00
Weblate fb7a071c2a Merge remote-tracking branch 'origin/develop' into develop 2017-12-01 11:04:56 +00:00
Luke Barnard a24c42b3a8 Realign collpased BottomLeftMenu with create group button 2017-12-01 11:04:46 +00:00
Luke Barnard 1ccffb7e58 Update imports for accessing KeyCode 2017-12-01 10:56:25 +00:00
Luke Barnard 363fe04a10 isCtrlOrCmdKeyEvent -> isOnlyCtrlOrCmdKeyEvent 2017-12-01 10:44:00 +00:00
Luke Barnard ddd0e161c0 Fix broken imports 2017-12-01 10:41:56 +00:00
Luke Barnard fe81fcb8c6 Factor out isCtrlOrCmdKeyEvent, use that in TagPanel
as opposed to the incorrect ctrl || meta
2017-12-01 10:30:49 +00:00
Milan Korecký 09aaafdf2b Translated using Weblate (Czech)
Currently translated at 100.0% (941 of 941 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/cs/
2017-11-30 17:52:31 +00:00
Weblate cef6f8088e Merge remote-tracking branch 'origin/develop' into develop 2017-11-30 15:43:29 +00:00
David Baker f30094c648 Merge pull request #1642 from matrix-org/luke/tag-panel-do-not-view-group
Don't show group when clicking tag panel
2017-11-30 15:43:24 +00:00
Luke Barnard eaaa9fe747 Don't show group when clicking tag panel 2017-11-30 15:35:40 +00:00
Richard Lewis 5ff5ca4705 Remove logging and broken title fetching functions. 2017-11-30 14:50:30 +00:00
Luke Barnard 3bcb3195c4 Implement shift-click and ctrl-click semantics for TP 2017-11-30 14:48:54 +00:00
Richard Lewis 87eab7573c Handle widget content loaded events. 2017-11-30 12:26:40 +00:00
Richard Lewis be603fecb0 Register and de-register widget postMessage endpoints. 2017-11-30 11:30:30 +00:00
Weblate 41c7d0cb41 Merge remote-tracking branch 'origin/develop' into develop 2017-11-30 11:07:38 +00:00
Luke Barnard 4e7a1e9653 Correctly position TagPanel createGroupButton 2017-11-30 11:07:27 +00:00
Richard Lewis 2cfbbb000e Refactor messaging listerners. 2017-11-30 10:20:29 +00:00
Weblate 0061d9ad6c Merge remote-tracking branch 'origin/develop' into develop 2017-11-30 10:12:46 +00:00
Matthew Hodgson 2a402985aa Merge pull request #5685 from aidalgol/root-lang-attrib-fix
Set html lang attribute from language setting
2017-11-30 10:12:40 +00:00
Szimszon 4be057ee2c Translated using Weblate (Hungarian)
Currently translated at 100.0% (941 of 941 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/hu/
2017-11-30 07:51:31 +00:00
Stefan Parviainen 437a440bdf Add missing id
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
2017-11-30 08:32:18 +01:00
Richard Lewis 4f5f44ff38 Add widget postmessage API stub. 2017-11-29 22:16:22 +00:00
Weblate 8c315c7e0b Merge remote-tracking branch 'origin/develop' into develop 2017-11-29 22:04:48 +00:00
Matthew Hodgson f72b44650b fix tertiary accent colors 2017-11-29 22:04:40 +00:00
Kévin C 6e3c12e754 Translated using Weblate (French)
Currently translated at 100.0% (941 of 941 strings)

Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/fr/
2017-11-29 20:24:01 +00:00
Stefan Parviainen cb5c9f2c5a Make Dialogs more accessible
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
2017-11-29 21:13:48 +01:00
Weblate 8da2a29f86 Merge remote-tracking branch 'origin/develop' into develop 2017-11-29 18:50:31 +00:00