w3c / wcag-em-report-tool

Interactive Guide to Assist Managing Web Accessibility Evaluations
http://www.w3.org/WAI/eval/report-tool/
Other
77 stars 45 forks source link

[Redesign] Improve “Result” display with sample in View Report #456

Closed hidde closed 3 years ago

hidde commented 3 years ago

Goals:

Easy to navigate

Some things to try and make it easy to navigate:

Caveats:

When what is displayed

Case 1: there are no sample pages

This is the 'simplest' case. We display a result and an observation if there is one.

table with 1.1.1: Non-text Content as first cell, passed in second cell and description in third cell

Case 2: there are sample pages, but none have results or observations

This is the same as above, just a result and an observation. There is no need to distinguish between entire sample and individual sample pages.

table with 1.1.1: Non-text Content as first cell, passed in second cell and description in third cell

Case 3: there are sample pages with results, and some without

Three sample pages were defined. An outcome + description was set for the entire sample. An outcome + description was also set for the Contact sample pages. The About us page was left untouched (no outcome. no description).

Because there are multiple results now, we display headings: one for Entire sample, one for each sample. We only do this for samples that have some result (a description AND/OR an outcome). We don't display the pages that were left untouched.

Observations can be as long as they need to be, for instance if they have code examples, they could span over many lines.

Case 4: there are sample pages with results, some have only outcome, no description

As said above, we don't display the sample page if it has no outcome and no observations. In the case that an outcome was set, but no observation, we display that sample page. Under Outcome, we display the outcome, under Observations we display a fallback text.

hidde commented 3 years ago

Fixed in https://github.com/w3c/wcag-em-report-tool/pull/468