hedgedoc / hedgedoc

HedgeDoc - Ideas grow better together
https://hedgedoc.org
GNU Affero General Public License v3.0
5.21k stars 405 forks source link

Allow for screen reader support with regards to authorship information #2896

Open nidico opened 4 years ago

nidico commented 4 years ago

[accessibility]

Problem:

In order to allow screen readers to read text with individual voices or announce authorship changes, authorship information needs to be properly and (preferably) consistently marked up.

For some reason, authorship information is shown in two different ways in CodiMD (colored vertical bars and underlines) (see hedgedoc/hedgedoc#2892 for a discussion and possible enhancements).

Due to that and in particular due to hedgedoc/hedgedoc#2895, screen readers cannot (neither easily nor at all) determine authorship.

Solution:

Add authorship-inline-xxx classes for all (explicitly authored) content (as done in hedgedoc/hedgedoc#2892, "simple proposal", but not necessarily visible).

Related issues:

mrdrogdrog commented 4 years ago

It seems like codemirror 5 (or the codemirror author plugin) is already doing this. image

mrdrogdrog commented 4 years ago

image

nidico commented 4 years ago

Yes, authorship-gutter-xxx and authorship-inline-xxx classes are available as they're used for CSS styling. However authorship-inline isn't used for content which is already covered by authorship-gutter - as it shouldn't be underlined.

Nevertheless there are two problems:

Both would be resolved if authorship-inline-xxx classes would be set everywhere (though this also has visual impact which needs to be considered and is discussed in hedgedoc/hedgedoc#2892).