Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip: Improve the accessibility of the composer and the rich text editor #12459

Merged
merged 13 commits into from
May 15, 2024

Conversation

florianduros
Copy link
Contributor

@florianduros florianduros commented Apr 26, 2024

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • Sign-off given on the changes (see CONTRIBUTING.md).

Part of element-hq/element-web#26762
Following #12443, AccessibleButton includes the new tooltip. We are migrating step by step the usage of the deprecated AccessibleTooltipButton to AccessibleButton.
Depends of #12458 for RovingAccessibleTooltipButton migration.
Depends of element-hq/compound-web#165 to use <kbd /> for shortcut in tooltips of formatting buttons.

Marking it at T-Enhancement because it's in the objective to improve accessibility.

Migrating both composer.

@florianduros florianduros changed the title Tooltip: Use AccessibleButton for composer & rich text editor Tooltip: Use AccessibleButton for composer & rich text editor Apr 26, 2024
@florianduros florianduros added the T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements label Apr 26, 2024
# Conflicts:
#	src/accessibility/roving/RovingAccessibleTooltipButton.tsx
@florianduros florianduros changed the title Tooltip: Use AccessibleButton for composer & rich text editor Improve the accessibility of the composer and the rich text editor Apr 30, 2024
@florianduros florianduros changed the title Improve the accessibility of the composer and the rich text editor Improve the tooltip accessibility of the composer and the rich text editor Apr 30, 2024
@florianduros florianduros marked this pull request as ready for review April 30, 2024 12:30
@florianduros florianduros requested a review from a team as a code owner April 30, 2024 12:30
src/components/views/rooms/MessageComposerButtons.tsx Outdated Show resolved Hide resolved
Copy link
Member

@t3chguy t3chguy Apr 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes here feel like a visual regression, can design sign off on losing the keyboard key styling here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually my bad, there's no visual regression, only an a11y one. The kbd elements are lost and thus also are the semantics

Before:
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, will need to update the tooltip compound to be able this use case.

Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above comments

@florianduros florianduros force-pushed the florianduros/tooltip/composer branch from df840fe to 64f1ab0 Compare May 7, 2024 08:36
@florianduros florianduros changed the title Improve the tooltip accessibility of the composer and the rich text editor Tooltip: Improve the accessibility of the composer and the rich text editor May 7, 2024
@florianduros florianduros added this pull request to the merge queue May 15, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 15, 2024
@florianduros florianduros added this pull request to the merge queue May 15, 2024
Merged via the queue into develop with commit 77a7245 May 15, 2024
30 checks passed
@florianduros florianduros deleted the florianduros/tooltip/composer branch May 15, 2024 08:53
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request May 22, 2024
https://build.opensuse.org/request/show/1175893
by user dheidler + anag+factory
- Version 1.11.67
  ## ✨ Features
  * Tooltip: Improve the accessibility of the composer and the rich text editor (matrix-org/matrix-react-sdk#12459). Contributed by @florianduros.
  * Allow explicit configuration of OIDC dynamic registration metadata (matrix-org/matrix-react-sdk#12514). Contributed by @t3chguy.
  * Tooltip: improve accessibility for messages (matrix-org/matrix-react-sdk#12487). Contributed by @florianduros.
  * Collapse UserSettings tabs to just icons on narrow screens (matrix-org/matrix-react-sdk#12505). Contributed by @dbkr.
  * Add room topic to right panel room info (matrix-org/matrix-react-sdk#12503). Contributed by @t3chguy.
  * OIDC: pass `id_token
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request May 22, 2024
https://build.opensuse.org/request/show/1175898
by user dheidler + anag+factory
- Version 1.11.67
  ## ✨ Features
  * Tooltip: Improve the accessibility of the composer and the rich text editor (matrix-org/matrix-react-sdk#12459). Contributed by @florianduros.
  * Allow explicit configuration of OIDC dynamic registration metadata (matrix-org/matrix-react-sdk#12514). Contributed by @t3chguy.
  * Tooltip: improve accessibility for messages (matrix-org/matrix-react-sdk#12487). Contributed by @florianduros.
  * Collapse UserSettings tabs to just icons on narrow screens (matrix-org/matrix-react-sdk#12505). Contributed by @dbkr.
  * Add room topic to right panel room info (matrix-org/matrix-react-sdk#12503). Contributed by @t3chguy.
  * OIDC: pass `id_token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants