plantuml / plantuml-server

PlantUML Online Server
https://plantuml.com/
GNU General Public License v3.0
1.6k stars 462 forks source link

Accessibility Findings #249

Closed niceborn closed 11 months ago

niceborn commented 1 year ago

Hello,

we had an accessibility assessment, because we are using the newest docker version of PlantUML in our company.

There were got some findings, which I would like to address here to probably get solved. Some of the issues are already solved in the alternative editor shown here: https://www.plantuml.com/plantuml/uml/SyfFKj2rKt3CoKnELR1Io4ZDoSa70000

  1. An input field cannot be left with the keyboard

Users with motor disabilities navigate within an application using the keyboard. That Multi-line input field of the UML editor cannot be exited with the keyboard, because with the Tab key Tab steps can be inserted within the input field. alternative Key combinations to leave the multi-line input fields are not available or are not documented in the application. As a result, further operation of the application is not possible possible.

p1

Leaving the input fields should be possible with the tab key.

  1. Two elements do not have a label

In the application, two input fields do not have a label. Motor impaired users who Using voice control may not be able to interact with these fields and to control them.

p2

  1. The contrast distance of some non-text content is insufficient People with low visual acuity need a minimum contrast between foreground and background, to be able to see the content clearly. In the application, however, the contrast between non-text content and background is below the lower limits of 3:1 for some elements. This indicates insufficient perceptibility for visually impaired users. This concerns e.g. the following elements:

p3

-There should be a minimum contrast of 3:1 between foreground and background for non-text content be respected.

Fixes would be really helpful.

arnaudroques commented 1 year ago

Our main issue here is that there has been a fork between the open source "plantuml-server" hosted here (and used by the docker) and the close-source server hosted at plantuml.com

This open source "plantuml-server" is now just one of the many plugins of the core library plantuml.jar and we focus on the core library . So we are looking for help here and any contribution is welcome :-)

Having said that, the following items are easy to fix:

It would be nice if you could clone the project on your side, do the changes, test it and provide a PR so that we integrate these changes.

Does it sound possible for you?

niceborn commented 1 year ago

Yes, that is possible. Thanks for the hints.

Just as a preview here is the actual status:

webapp_new1

We will commit the changes afterwards, to include them in the master branch.

arnaudroques commented 1 year ago

Great, it looks really cleaner. The "Copy to Clipboard" button is a good idea.

What about also a "Paste from Clipboard", and also having the same buttons "Clipboard" on the UML Content Editor? :-)

Many thanks for your work, it really helps!

The-Lum commented 1 year ago

Hello all,

Another good enhancement could be a button:

Regards.

niceborn commented 1 year ago

Hello,

thanks for all the ideas. I will also add the "Copy Content to Clipboard" functionality. In my opinion pasting content from clipboard into the editor is easier and don't need a button. Also there could be some security concerns about reading the clipboard from a website.

Regards.

niceborn commented 1 year ago

I created a pull request for the changes: https://github.com/plantuml/plantuml-server/pull/250 Screenshot 2022-12-08 123801

arnaudroques commented 1 year ago

Sorry to give you some work, but maybe you can update the README.md file with the proper image now. And many thanks for your contribution. I hope that this will push other people to also contribute :-)

niceborn commented 1 year ago

OK, I added a PR to replace the scteenshot https://github.com/plantuml/plantuml-server/pull/251

niceborn commented 1 year ago

Looks good now :-)

niceborn commented 1 year ago

Hi, I'm missing my changes in the newest release

arnaudroques commented 1 year ago

Sorry, I've made a mistake and erased your changes without intention. I'll restore them

arnaudroques commented 1 year ago

So it's restored now. Really sorry about that!

Would you like that we publish a new release so that you can get your changes in the official version?

niceborn commented 1 year ago

Many thanks for the quick restore. No, a new release is not necessary for me, because I will pull the master branch with the included changes.