salesforce / salesforce/design-system-react
Make Tabs a controlled component
Open
Nobody has claimed this yet.
breaking-change
tabs
- Dominant language
- JavaScript
- Stars
- 982
- Forks
- 440
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 4
Description
- Make
Tabsa controlled component (require parent to choose current tab by prop). - Update to current SLDS markup #1053
- Remove DOM searches. Do not depend on DOM for state.
- Allow Popovers and tooltips on tabs. #1186
Props
- Add
idtoTabPanelandselectedIdtoTabs. - Removed Index related props (considering allowing in a hidden backwards compatible way)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing Tabs and TabPanel components and reviewing their current props and SLDS markup. Implement the requested controlled Tabs API with TabPanel ids and selectedId, remove DOM-based state and index-related props, and verify that popovers and tooltips remain usable on tabs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100