online icon indicating copy to clipboard operation
online copied to clipboard

browser: accessibility: fix incorrect semantic use of a <table> tag

Open hcvcastro opened this issue 1 year ago • 6 comments

" the

element, only elements (table rows) and within those, or elements (table cells), should be used. "

Change-Id: Iafff80c01158a1cb08d3a6f8cc29cbc00b9aaeb5 Signed-off-by: Henry Castro [email protected]

hcvcastro avatar Jul 08 '24 14:07 hcvcastro

This PR causes regression, some weird spacing inside some list views: treeview

Would be good to check also in:

  • macro dialog
  • zotero dialog because they have additional complex structures inside treeviews

eszkadev avatar Jul 08 '24 14:07 eszkadev

Hi I have proposal:

  • we have at least 3 types of treeviews
  • can we make separate classes for them? so they all inherit from TreeViewControl, have the same api, but implement differences inside

It will be much easier to modify in the future if we know what we are changing... Also could you comment above each of the classes in which dialogs that specific implementation can be tested?

so I would expect that main "entry point", treeview handler will do something like:

if (some condition)
    treeControl = SimpleTreeControl()
else if (something else)
    treeControl = MoreAdvancedTreeControl()
else if (...)
     treeControl = SomeOtherType()
else
     error('unkonwn type');

eszkadev avatar Jul 25 '24 07:07 eszkadev

Also it would be nice to merge this step by step: so please implement one kind of treeview -> then we review and merge this one implementation (other types use old handler). Then we do second and so on

eszkadev avatar Jul 25 '24 08:07 eszkadev

Hi I have proposal:

we have at least 3 types of treeviews
can we make separate classes for them? so they all inherit from TreeViewControl, have the same api, but implement differences inside

Thanks, I analyzed too, but first I wanted to convert to class and reuse almost all possible code, then we can separate in 3 sub-classes, inspecting the shared code, but the problem here is the iterations of data.entries, the initial idea is to auto-detect the treeviews type in one loop iteration

hcvcastro avatar Jul 25 '24 13:07 hcvcastro

It will be much easier to modify in the future if we know what we are changing... Also could you comment above each of the classes in which dialogs that specific implementation can be tested?

I agree

hcvcastro avatar Jul 25 '24 13:07 hcvcastro

so I would expect that main "entry point", treeview handler will do something like:

if (some condition) treeControl = SimpleTreeControl() else if (something else) treeControl = MoreAdvancedTreeControl() else if (...) treeControl = SomeOtherType() else error('unkonwn type');

The problem I have found how to auto-detect which type of treeview, I did not analyze the Core side, it could send data.entries, with children or not, with headers or not, or 1 column, all it must be done in one loop iterations, we cannot iterate for every type =)

hcvcastro avatar Jul 25 '24 13:07 hcvcastro

Build warnings:

browser/src/control/jsdialog/Widget.TreeView.js
  1019:4   warning  'selectionElement' is assigned a value but never used  no-unused-vars
  1161:11  warning  'state' is defined but never used                      no-unused-vars
  1173:4   warning  'selectionElement' is assigned a value but never used  no-unused-vars

eszkadev avatar Oct 22 '24 10:10 eszkadev

It is in pause, I did not finish it yet.

hcvcastro avatar Oct 22 '24 12:10 hcvcastro

Dialogs with more advanced testing scenarios:

  • macro
  • review -> manage changes in writer
  • navigator
  • Zotero dialog
  • Format -> Character (lists of fonts)

macro_mobile changes zotero

eszkadev avatar Nov 13 '24 15:11 eszkadev