components icon indicating copy to clipboard operation
components copied to clipboard

[sl-text-field] ARIA label not set if not used in <sl-form>

Open fransdeboer opened this issue 8 months ago โ€ข 0 comments

Provide a general summary of the issue here

aria-describedby label is not set if <sl-text-field> is used without an enclosing <sl-form>

๐Ÿค” Expected Behavior?

aria labels should be set by the developer?

๐Ÿ˜ฏ Current Behavior

๐Ÿ’ Possible Solution

  • is it possible to create an ESlint rule to inform the developer of a missing ARIA label it this situation?

  • update documentation at https://sanomalearning.design/categories/components/button/accessibility/#wai-aria

๐Ÿ–ฅ๏ธ Steps to Reproduce

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

Chrome

If other, please specify.

No response

What operating system are you using?

WSL

๐Ÿ‘ค Your name

Frans de Boer

๐Ÿงข Your product/team

Magister

๐ŸŽจ Your Theme(s)

Magister

โœ… Tasks

  • [ ] Create ES lint rule that checks if your form control has an accessible name.

fransdeboer avatar Apr 29 '25 08:04 fransdeboer