PillContainer: Support non-removable pills

Open
#2,660 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, react
Domain
frontend

Research direction

Start at the PillContainer implementation and its Options definition. Check the existing removal behavior, then verify that a default-false hasNoRemove option can disable removal for read-only pills and that the existing behavior remains unchanged by default.

Written by the indexing model from the issue text.

Description

stale

We have a pattern in our project for pills in "read only mode" that disables removal.

Proposal:
add hasNoRemove key to PillContainer Options. Default is false.

FYI: @garygong

Dominant language
JavaScript
Stars
994
Forks
444
Avg merge
3d 23h
Merged PRs (30d)
44

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from salesforce/design-system-react

All issues in salesforce/design-system-react

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.