Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow TabIndex setting (with current behavior as default) to support accessibility #7969

@tom-flamelit

Description

@tom-flamelit

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

For accessibility purposes (especially section 508 testing and compliance), being able to control the tabindex property is helpful for keyboard navigability.

Why?

As a package, Streamlit is currently unintentionally hostile to accessibility patterns and standards due to reliance on iframes with insufficient ability for developers to control rendered page output. Allowing tabbing control helps in ensuring the page can be keyboard navigable, and starts to help screen reader compatibility.

How?

The streamlit.elements.iframe.IframeMixin class supports src, width, height, and scrolling objects that are passed to the protobuf object that is defined in the generated protobuf code at streamlit.proto.IFrame_pb2.py.

If this is the right place to put it, it would be helpful to add an optional argument to control the tab index set between -1, 0, and other values.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions