Skip to content

[separator] Support vertical orientation #1303

@aarongarciah

Description

@aarongarciah

Feature request

Summary

Support vertical orientation on the Separator component.

Examples in other libraries

Motivation

According to the WAI-ARIA spec, elements with role="separator" support aria-orientation="horizontal|vertical". Most libraries support vertical orientation so most users would expect to have a prop for it instead of adding aria-orientation="vertical" by themselves.

Alternatives

Don't provide a prop to change the orientation and just guide user on the docs to add the corresponding aria-orientation="vertical" attribute when in need of a vertical separator. This is already the case when users need to make a focusable/interactive separator, since they'd need to manage the aria-disabled, aria-valuemax, aria-valuemin, etc. attributes (see https://www.w3.org/TR/wai-aria-1.2/#separator), but interactive separators are way less common than static ones and could be considered an advanced use case.

Metadata

Metadata

Assignees

Labels

component: separatorChanges related to the separator component.type: new featureExpand the scope of the product to solve a new problem.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions