Skip to content

List: Render using <ol>, <ul>, <li> #1253

@hross

Description

@hross

Bug Report

Because of the way lists are currently implemented (paginated divs), I cannot render semantic ordered or unordered lists with the component.

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? Yes, maybe

Requested priority: High-ish (?)

Describe the issue:

This would arguably be a lower priority feature (although I think we should definitely provide a way to render virtualized lists with the List component) except that screen readers in document mode typically use semantic lists of elements to help them navigate the page. In order to provide a decent SR experience, at least having the option to render an ordered list should be part of this component.

Actual behavior:

divs are rendered.

Expected behavior:

We should render an ol/ul with an li underneath. The tricky part is that ol/ul cannot have any children other than li elements which means the current div paging model would need to be rewritten (and possibly take a performance hit) so that it uses first and last elements in a page instead of a container element.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions