Skip to content

Comments

fix: remove mui components from <TagInput/>#22234

Open
jakehwll wants to merge 3 commits intomainfrom
jakehwll/remove-mui-badges
Open

fix: remove mui components from <TagInput/>#22234
jakehwll wants to merge 3 commits intomainfrom
jakehwll/remove-mui-badges

Conversation

@jakehwll
Copy link
Contributor

This pull-request removes the last instance of @mui/material/Chip from the codebase. And removes it from our vite.config.mts so we no longer have to cache it 🙂

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a5447c5ced

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

/>
<Badge key={itemIds[index]} size="sm" className="gap-1 pr-1">
{value}
<Button

Choose a reason for hiding this comment

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

P2 Badge Move remove buttons out of the wrapping label

Placing each remove <Button> inside the same <label> that owns the text <input> introduces an extra labelable control inside a label, which is invalid HTML and can cause inconsistent focus/announcement behavior for keyboard and screen-reader users (the label activation competes with the button interaction). This regression was introduced by replacing Chip with a real <button> element, so the remove action should be rendered outside the label wrapper (or the input should be associated via htmlFor) to keep semantics stable.

Useful? React with 👍 / 👎.

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.

1 participant