Skip to content

[popover] Allow using role instead of overlayRole #9823

@sissbruecker

Description

@sissbruecker

Describe your motivation

Currently some internal popover logic relies on the overlayRole property (e.g. __updateAriaAttributes). With refactoring the component to use native popovers the role is now set on the host. As such it would be good if developers could set role directly on the host element instead of having to use a non-standard overlayRole.

Describe the solution you'd like

Allow setting role directly on the popover host element and update internal logic to use role. overlayRole should still work as before and, if it's set, just overwrites role, assuming that developers would either use one or the other.

Describe alternatives you've considered

No response

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