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

listitem should not be able to be disabled #40752

Open
3 tasks done
sh977218 opened this issue Aug 20, 2024 · 1 comment
Open
3 tasks done

listitem should not be able to be disabled #40752

sh977218 opened this issue Aug 20, 2024 · 1 comment
Assignees

Comments

@sh977218
Copy link

sh977218 commented Aug 20, 2024

Prerequisites

Describe the issue

this page: https://getbootstrap.com/docs/5.3/components/list-group/#disabled-items
it has a ul with li being `aria-disabled="true"

<ul class="list-group">
  <li class="list-group-item disabled" aria-disabled="true">A disabled item</li>
  <li class="list-group-item">A second item</li>
  <li class="list-group-item">A third item</li>
  <li class="list-group-item">A fourth item</li>
  <li class="list-group-item">And a fifth one</li>
</ul>

however, in https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-disabled#associated_roles
mozilla does not have aria-disabled to the 'li' which role is listitem..

Reduced test cases

<ul class="list-group">
  <li class="list-group-item disabled" aria-disabled="true">A disabled item</li>
  <li class="list-group-item">A second item</li>
  <li class="list-group-item">A third item</li>
  <li class="list-group-item">A fourth item</li>
  <li class="list-group-item">And a fifth one</li>
</ul>

What operating system(s) are you seeing the problem on?

Windows, macOS

What browser(s) are you seeing the problem on?

Chrome

What version of Bootstrap are you using?

5

@Amenawon
Copy link

Amenawon commented Sep 3, 2024

It looks like aria-disabled are more suited for buttons than a list item, just a class should suffice.
Can I please be assigned to this ticket?

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

No branches or pull requests

5 participants