-
-
Notifications
You must be signed in to change notification settings - Fork 830
Conversation
Hi! Thanks for the contribution. Can you fix the typescript, lint and tests errors to make the CI happy? |
32b4852
to
e3c1f7a
Compare
@akirk Hello! The CI is in failure. Do you still want to work on this PR? Thanks |
75796db
to
7ea55e9
Compare
@akirk any chance of splitting out the improve voiceover changes into a separate PR to simplify concerns for review? |
I tried to address the lint problems, I am not sure it worked, |
Could you share examples of changes and errors respectively |
Ok, I'll create a new PR and remove the keyboard nav changes from this PR. |
The new PR for the keyboard navigation is #12328. |
7ea55e9
to
b44734c
Compare
…e the profile picture alt text
b44734c
to
4bf8d18
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previous comment re other Event renderers still stands
@@ -102,6 +103,7 @@ function MemberAvatar( | |||
} | |||
: props.onClick | |||
} | |||
aria-label={name ? name + ". " : ""} // Full stop adds a pause between the name and the appended message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment doesn't make much sense, and points out that not all consumers of MemberAvatar may have any appended message so maybe another solution is desired which is more respective of the plethora of places a MemberAvatar may be used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tried something in 90ea6c4
Basically the aria-label for the component itself is just the name (without dot).
In EventTile, we override the accessible name of the DIV that contains the avatar to be name + dot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That won't work because giving a div both a role and a negative tab index would be yet another accessibility violation. I've added a prop to conditionally add the .
to the aria label.
I'm not entirely convinced that this is really useful. Testing with Orca, I don't really see a difference with/without the dot.
90ea6c4
to
96772fb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to break for events sent by the user
@@ -612,6 +612,7 @@ export default class TextualBody extends React.Component<IBodyProps, IState> { | |||
} | |||
|
|||
let widgets; | |||
const id = "mx_EventTile_content_" + mxEvent.getId(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this approach is viable:
I think something like e30354b is probably what we want but we'd have a function that takes an event and spits out some accessible text:
I'm inclined to close this PR for now. |
Closing for the reasons mentioned in #12189 (comment) |
Improves Voiceover through a dedicated aria-label:
Checklist
Signed-off-by:
Alex Kirk <[email protected]>
Here's what your changelog entry will look like:
✨ Features