[Separator] Support vertical orientation #1303
Labels
component: separator
This is the name of the generic UI component, not the React module!
new feature
New feature or request
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"
supportaria-orientation="horizontal|vertical"
. Most libraries support vertical orientation so most users would expect to have a prop for it instead of addingaria-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 thearia-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.The text was updated successfully, but these errors were encountered: