Skip to content

accessibility(Chips) #635

Merged
wuda-io merged 3 commits intomaterializecss:v2-devfrom
gselderslaghs:chips-accessibility
Jul 23, 2025
Merged

accessibility(Chips) #635
wuda-io merged 3 commits intomaterializecss:v2-devfrom
gselderslaghs:chips-accessibility

Conversation

@gselderslaghs
Copy link
Copy Markdown
Member

@gselderslaghs gselderslaghs commented Jul 14, 2025

Proposed changes

This pr fixes several issues addressed in #184

  • refactored idiomatic text element accordingly to a interactive button element (fixes keyboard interaction)
  • refactored chips div wrapper to ul wrapper element
  • refactored chip div wrapper to li wrapper element

Types of changes

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to change).

Checklist:

  • I have read the CONTRIBUTING document.
  • My commit messages follows the conventional commit format
  • My change requires a change to the documentation, and updated it accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Comment thread components/chips/chips.ts
renderedChip.insertBefore(img, renderedChip.firstChild);
}
if (this.options.allowUserInput) {
renderedChip.setAttribute('tabindex', '0');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove the tabindex? because then they are not tabbable anymore.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or does it work because it is a button element... 🤔

@wuda-io wuda-io merged commit b7fe8c9 into materializecss:v2-dev Jul 23, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants