You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the file module, we need to start to implement a more modern, accessible approach to the current data tables we provide in core today. This table layout provides clear aria information on column sortings, row scopes, and element actions. It hides unnessesary information for screenreaders like icons and marks them for presenation purposes only. The data properties are only examples and can be extended, shortened. Please adapt to fit the needs of the file module.
Markup
<divclass="component-datatable" role="group" aria-labelledby="component-datatable-123523356"><tableclass="component-datatable-table"><captionclass="component-datatable-caption" id="component-datatable-123523356">Images</caption><theadclass="component-datatable-head"><tr><thdata-type="checkbox" scope="col" role="columnheader"><spanclass="component-checkbox"><inputclass="component-checkbox-input" type="checkbox" id="component-datatable-selectall-123523356" value="1"><labelclass="component-checkbox-label" for="component-datatable-selectall-123523356"><spanclass="component-visually-hidden">select all elements</span></label></span></th><thdata-type="title" scope="col" role="columnheader" aria-sort="ascending"><spanclass="component-datatable-columnheader"><spanclass="component-datatable-columnheader-icon" role="presentation"><!-- ICON --></span><spanclass="component-datatable-columnheader-text">Name</span></span><buttonclass="component-datatable-sorting"><spanclass="component-datatable-sorting-icon" role="presentation"><!-- ICON --></span><spanclass="component-datatable-sorting-label component-visually-hidden">
sort by Name in descending order
</span></button></th><thdata-type="date" scope="col" role="columnheader" aria-sort="none"><spanclass="component-datatable-columnheader"><spanclass="component-datatable-columnheader-text">Modified</span></span><buttonclass="component-datatable-sorting"><spanclass="component-datatable-sorting-icon"><!-- ICON --></span><spanclass="component-datatable-sorting-label component-visually-hidden">
sort by Modified in ascending order
</span></button></th><!-- MORE COLUMNS --></tr></thead><tbodyclass="component-datatable-body"><!-- RECORD START --><trdata-uid="identifier1234"><tddata-type="checkbox" data-label="Select DSC00001.jpg"><spanclass="component-checkbox"><inputclass="component-checkbox-input" type="checkbox" id="component-datatable-select-identifier1234" value="1"><labelclass="component-checkbox-label" for="component-datatable-select-identifier1234"><spanclass="component-visually-hidden">Select DSC00001.jpg</span></label></span></td><thscope="row" data-type="title" data-value="DSC00001.jpg" data-property="name" data-label="Filename"><aclass="component-datatable-link" href="#" title="Open Image DSC00001.jpg"><spanclass="component-datatable-link-icon" role="presentation"><!-- ICON --></span><spanclass="component-datatable-link-text">DSC00001.jpg</span></a></th><tddata-type="date" data-value="1554138381" data-property="modified" data-label="Modified">
1 April 2019
</td><!-- MORE COLUMNS --></tr><!-- RECORD END --></tbody></table></div>
Definition of Done
markup is provided as shown/adapted
aria-labelledby is set on the outer datatable container
table has a caption to describe the contents that is referenced by the outer container
thead and tbody are implemented
all th declare its scope for col|row
the sorting direction it present on all th elements in the thead, valid values for aria-sort are none, ascending and descending
the sorting buttons describe the behavior that is applied when the activated for a column, not the active one
all checkboxes have descriptive labels that are placed directly after the label itself.
each link has a title
The text was updated successfully, but these errors were encountered:
each link click changes browser history would mean integrating a full routing solution in the iframe that works by manipulating the parent frame to allow using the history afaics. that's decidedly non-MVP...
@susannemoog it's currently possible to navigate through the browser history back and forth since also the iframe location changes influence the parent frame. I agree that a full routing solution is not the scope of the MVP, but the user should be able to navigate as before.
Description
With the file module, we need to start to implement a more modern, accessible approach to the current data tables we provide in core today. This table layout provides clear aria information on column sortings, row scopes, and element actions. It hides unnessesary information for screenreaders like icons and marks them for presenation purposes only. The data properties are only examples and can be extended, shortened. Please adapt to fit the needs of the file module.
Markup
Definition of Done
thead
andtbody
are implementedth
declare its scope for col|rowth
elements in thethead
, valid values foraria-sort
arenone
,ascending
anddescending
The text was updated successfully, but these errors were encountered: