Skip to content

Conversation

@basile-parent
Copy link
Contributor

@basile-parent basile-parent commented Jul 24, 2024

First part of the improvments proposed in #544 :

  • removing the "radio" attribute on buttons when it's not relevant
  • properly grouping the relevant radio button

image

The only thing I could not do is to translate the new locale entry to all languages

@basile-parent basile-parent changed the title A11y improvment A11y improvment (part 1) Jul 24, 2024
@basile-parent basile-parent mentioned this pull request Jul 24, 2024
2 tasks
@petyosi
Copy link
Contributor

petyosi commented Jul 24, 2024

Thank you for the PR.

The project has prettier configured, but for some reason, your PR uses a different formatting which results in a massive change - this makes it very hard for me to review it; the build won't pass as well.

Can you fix the formatting? I don't think that the change you mean to introduce should change 300+lines.

@basile-parent
Copy link
Contributor Author

Yeah, I don't know why it don't apply... I'll fix that and push a new commit

@basile-parent
Copy link
Contributor Author

@petyosi I think we are good now

@petyosi
Copy link
Contributor

petyosi commented Jul 25, 2024

The current state of the PR has typescript failing and hooks with missing dependencies. Also, it changes the spacing of the toolbar, making it wider:

image

@basile-parent
Copy link
Contributor Author

The missing imports were so weird... It should have worked at all 🤔 Anyway, it's fixed.

I also fixed the spacing but had to make some compromises to have the exact same render : I had to externalize the <div className={styles.toolbarGroupOfGroups}>. If not, there are additional margins on the sup/sub formatting (only difference).
If you think this difference is acceptable, I can rollback this change.

image

@dartilesm
Copy link

Is this PR going to be merged at some point? Seems interesting

@petyosi
Copy link
Contributor

petyosi commented May 30, 2025

No, unfortunately not. The changes are too complex and, as far as I remember, some of the problems I outlined are still there. Closing.

@petyosi petyosi closed this May 30, 2025
@basile-parent
Copy link
Contributor Author

No, unfortunately not. The changes are too complex and, as far as I remember, some of the problems I outlined are still there. Closing.

Hello @petyosi, I think I have solved all the problems you outlined. What can I do to be more compliant ? You says the changes are too complex : if you have an idea to make it simplier, I'm open to suggestions.

As for now, the component has some accessibility failure whose are important to fix if we want to continue to use it. In France, a new law will be applied on June 28th : accessibility compliance will be mandatory for (almost) all companies.

@petyosi
Copy link
Contributor

petyosi commented Jun 12, 2025

Thanks for the update on the France laws - this is important of course, not only for compliance purposes.

However, I can't merge this - it changes the style of the toolbar, and it adds a bunch of modifications to the toolbar primitives which don't seem obvious. The hook problem is also still there:
image

I don't want to block you on the necessary changes, so my advice would be to fork and publish your own version. I hope I will be able to get to prioritizing the accessibility compliance of the component, but this is a large task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants