Skip to content

Make collapsed elements accessible without JavaScript #14122

@mbrodala

Description

@mbrodala

Currently the style of the .collapse class is applied unconditionally. If JavaScript is not available for one or another reason, such content is not accessible.

This can be fixed with the usual no-js/js classes like what Modernizr does.

In the most basic case this can be achieved as simple as this:

$("html").addClass("js")

Then in less/component-animations.less change .collapse to .js .collapse.

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