Peter Vágner
eda453bbe5
Fixed an issue where pressing enter key to activate the AccessibleButton
...
was also activating normal button that might just have received the
system focus as a result of the key press and the other way round.
The most obvious occurence of this issue is that dialogs were
reappearing when dismissed by pressing the enter key.
2017-12-05 23:23:40 +01:00
Peter Vágner
a31af39ca8
Applied aria-describedby to all other dialogs that are using BaseDialog.
...
Also added initial focus where it has not been set.
2017-12-05 13:52:20 +01:00
Peter Vágner
4f83f6cf25
Move keyboard focus management back to the BaseDialog rather than
...
leaving it in the Modal manager.
We are using Modal manager to load other components not just BaseDialog
and its subclasses and they might require different keyboard handling.
Also depend on focus-trap-react rather than react-focus-trap for locking
keyboard focus inside the dialog. The experience is much nicer and even
the FocusTrap element it-self no longer gains the focus.
On a side note using the FocusTrap element outside the dialog (on
its parent) stops it from working properly.
2017-12-05 08:50:40 +01:00
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
Stefan Parviainen
437a440bdf
Add missing id
...
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
2017-11-30 08:32:18 +01:00
Stefan Parviainen
cb5c9f2c5a
Make Dialogs more accessible
...
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
2017-11-29 21:13:48 +01:00
Luke Barnard
7118f7a38f
gen-18n
2017-11-29 18:41:08 +00:00
Luke Barnard
feb193afd4
Merge pull request #1639 from matrix-org/luke/feature-tag-panel
...
Implement TagPanel (or LeftLeftPanel) for group filtering
2017-11-29 18:16:43 +00:00
Luke Barnard
f708250d44
Add feature flag for Tag Panel
2017-11-29 18:00:42 +00:00
Luke Barnard
ead30fae9d
Use unmounted instead of mounted
2017-11-29 17:07:43 +00:00
Luke Barnard
45bcb6f2ed
Implement TagPanel (or LeftLeftPanel) for group filtering
...
This allows for filtering of the RoomList by group. When a group is selected, the room list will show:
- Rooms in the group
- Direct messages with members in the group
A button at the bottom of the TagPanel allows for creating new groups, which will appear in the panel following creation.
2017-11-29 16:53:43 +00:00
Luke Barnard
ff25c2f329
Merge pull request #1638 from matrix-org/luke/feature-bulk-device-deletion
...
Implement UI for using bulk device deletion API
2017-11-28 16:01:39 +00:00
David Baker
a5acc2cfc2
Merge pull request #1637 from matrix-org/luke/replace-IRC-with-flair
...
Replace (IRC) with flair
2017-11-28 16:00:47 +00:00
Luke Barnard
736b8045aa
Remove evil auth cache
2017-11-28 15:54:00 +00:00
Luke Barnard
204bbebfca
Only calculate displayed groups if flair enabled
2017-11-28 15:49:11 +00:00
Luke Barnard
b32e4a57bc
Factor out _getDisplayeDGroups
2017-11-28 15:46:23 +00:00
Luke Barnard
b748c62880
Renames for clarification
2017-11-28 15:40:36 +00:00
Luke Barnard
1c71983610
Implement UI for using bulk device deletion API
2017-11-28 15:32:40 +00:00
Luke Barnard
6761c9f526
Merge pull request #1635 from matrix-org/luke/allow-guest-view-group
...
Allow guests to view individual groups
2017-11-28 14:07:22 +00:00
Luke Barnard
55b5f2b249
Merge branch 'develop' into luke/allow-guest-view-group
2017-11-28 14:06:43 +00:00
David Baker
6c283e2a0d
Merge pull request #1636 from matrix-org/luke/allow-guest-access-mygroups
...
Allow guest to see MyGroups, show ILAG when creating a group
2017-11-28 14:01:57 +00:00
Luke Barnard
3addb924b1
Replace (IRC) with flair
...
If a user has public groups that are honoured in their flair, remove the (IRC) to give the appearance that the flair replaces it.
2017-11-28 13:50:05 +00:00
Luke Barnard
a8594a58e5
Allow guest to see MyGroups, show ILAG when creating a group
2017-11-28 13:32:46 +00:00
Luke Barnard
7ec4010881
Make GroupStore use MatrixClientPeg
...
To avoid weirdness with using a cached matrix client
2017-11-28 11:54:05 +00:00
Luke Barnard
1a3ad5a342
Allow guests to view individual groups
...
For homeservers that still disallow guests (running synapse without https://github.com/matrix-org/synapse/pull/2715 ), start ILAG.
2017-11-28 11:52:46 +00:00
David Baker
bbaa46f773
Merge pull request #1634 from matrix-org/luke/move-group-flair-toggle-to-user-settings
...
Move group publication toggles to UserSettings
2017-11-28 11:02:45 +00:00
Luke Barnard
d4f5e7e6d7
Deal with errors, lack of groups, loading
2017-11-28 10:46:20 +00:00
Richard van der Hoff
8be3862e68
Merge branch 'master' into develop
2017-11-28 10:29:40 +00:00
Richard van der Hoff
a088e559d1
v0.11.2
2017-11-28 10:25:04 +00:00
Richard van der Hoff
36e663131b
Prepare changelog for v0.11.2
2017-11-28 10:25:04 +00:00
Luke Barnard
0d5f7ef246
Avoid NPE
2017-11-28 10:12:46 +00:00
Luke Barnard
3342754a72
Catch and log errors from getting group profile
2017-11-28 10:11:25 +00:00
David Baker
81ae081f15
Merge pull request #1617 from turt2live/travis/granular-theme
...
Pull the theme through the default process
2017-11-27 18:07:09 +00:00
Richard van der Hoff
4a20185d64
Merge pull request #1633 from matrix-org/rav/handle_login_flows_better
...
Ignore unrecognised login flows
2017-11-27 18:05:04 +00:00
lukebarnard
9ed9422af8
Move group publication toggles to UserSettings
2017-11-27 17:24:42 +00:00
Richard van der Hoff
80b8cbb473
Ignore unrecognised login flows
...
Update the Login component so that if it sees an unrecognised login flow, it
just ignores it and uses another one, so that riot can still be used with
homeservers supporting custom login types.
2017-11-27 16:47:49 +00:00
David Baker
7826d0c61a
Merge pull request #1630 from aidalgol/redact-dialog-fix
...
Rebase ConfirmRedactDialog on QuestionDialog
2017-11-27 14:55:04 +00:00
David Baker
9c9e223191
Merge pull request #1629 from pafcu/fix-logging
...
Fix logging of missing substitution variables
2017-11-27 14:52:44 +00:00
David Baker
e07c7e404e
Merge pull request #1632 from matrix-org/luke/rename-related-communities
...
Rename Related Groups to improve readability
2017-11-27 14:34:02 +00:00
lukebarnard
3635997090
Rename Related Groups to improve readability
2017-11-27 14:13:44 +00:00
Aidan Gauland
3358fdc906
Address eslint errors
...
* Remove space before curly brace.
* Remove unused import.
2017-11-26 16:04:24 +13:00
Aidan Gauland
aaf8106e9e
Rebase ConfirmRedactDialog on QuestionDialog
...
Rewrite the ConfirmRedactDialog component to derive from the QuestionDialog component.
2017-11-26 15:46:24 +13:00
Stefan Parviainen
df8a8f61e2
Fix logging of missing substitution variables
...
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
2017-11-23 20:19:38 +01:00
David Baker
c002d3ff99
Merge pull request #1616 from pafcu/fix-presence-i18n
...
Make PresenceLabel more easily translatable
2017-11-22 17:17:52 +00:00
David Baker
a784abd57f
Comment typo
2017-11-22 17:13:18 +00:00
David Baker
c648b471ed
Merge pull request #1618 from pafcu/fix-substitution
...
Perform substitution on all parts, not just the last one
2017-11-22 17:12:14 +00:00
Richard van der Hoff
dff76f7db1
Merge pull request #1552 from matrix-org/t3chguy/header_access_token
...
Send Access Token in Headers to help prevent it being spit out in errors
2017-11-22 16:44:36 +00:00
Matthew Hodgson
d4feca5dfb
Merge pull request #1628 from pafcu/label-actionbuttons
...
Add aria-labels to ActionButtons
2017-11-21 18:46:07 +00:00
Richard van der Hoff
b2e80a8ee2
Merge pull request #1620 from matrix-org/rav/fix_memberpresence_avatar
...
MemberPresenceAvatar: fix null references
2017-11-21 17:42:13 +00:00
Richard van der Hoff
91dbe956c6
Merge pull request #1623 from turt2live/travis/presence-break
...
Disable presence controls if there's no presence
2017-11-21 17:40:31 +00:00