Skip to content

[Tooltip] Support aria-labelledby for anchoring the tooltip to it's owner #2012

@rvanderveen058

Description

@rvanderveen058

Provide a general summary of the issue here

Linter warns for 'elements must have text content or aria-label for accessibility' but aria-describedby is already used.

🤔 Expected Behavior?

No error

😯 Current Behavior

Image

💁 Possible Solution

No response

🖥️ Steps to Reproduce

<sl-button slot="actions" fill="ghost" shape="pill" aria-describedby="tooltip"><sl-icon name="far-pencil"></sl-icon></sl-button><sl-tooltip id="tooltip">${msg('Edit class')}</sl-tooltip>

What browsers are you seeing the problem on? (only for bugs in code)

Safari

If other, please specify.

No response

What operating system are you using?

MacOS

👤 Your name

Ronald van der Veen

🧢 Your product/team

Magister

🎨 Your Theme(s)

Magister

Metadata

Metadata

Assignees

Type

Projects

Status

✈️ Released

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions