Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove warning on button cannot have role separator #11460

Open
thebjorn opened this issue May 4, 2024 · 0 comments
Open

Remove warning on button cannot have role separator #11460

thebjorn opened this issue May 4, 2024 · 0 comments

Comments

@thebjorn
Copy link

thebjorn commented May 4, 2024

Describe the bug

If you create an element, e.g. as the handle for resizing a SplitPanel component and give it a sensible aria role ("separator"), you get a warning. This should no longer give a warning: w3c/html-aria#488

Reproduction

<button type="button" role="separator">...</button

You get a warning similar to this:

docsite:dev: 12:19:58 PM [vite-plugin-svelte] C:/srv/lib/tilly/packages/grogui/src/lib/components/splitpanel/SplitPanel.svelte:119:4 <button> cannot have role 'separator'

REPL

Logs

docsite:dev: 12:19:58 PM [vite-plugin-svelte] C:/srv/lib/tilly/packages/grogui/src/lib/components/splitpanel/SplitPanel.svelte:119:4 <button> cannot have role 'separator'

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (48) x64 AMD Ryzen Threadripper 3960X 24-Core Processor
    Memory: 31.56 GB / 63.88 GB
  Binaries:
    Node: 21.5.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.21 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.5.4 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.0.6 - ~\AppData\Local\pnpm\pnpm.CMD
  Browsers:
    Edge: Chromium (122.0.2365.92)
    Internet Explorer: 11.0.22621.1

Severity

annoyance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant