salesforce / salesforce/design-system-react

Tree: Expand Button text is hard-coded and cannot be changed by consumer

Open
#2,019 1 comment 0 reactions 1 assignee View on GitHub

@AnutaK is already working on this.

Since Jun 7, 2019.

tree
Dominant language
JavaScript
Stars
982
Forks
440
Avg merge
1d 21h
Merged PRs (30d)
4

Description

"Expand Tree Branch" text is not able to be changed by library consumers.

I propose updating Tree props to:

	assistiveText: PropTypes.shape({
		label: PropTypes.string,
		expandBranchLabel: PropTypes.string,
	}),

expandBranchLabel default value is "Expand Tree Branch".

https://github.com/salesforce/design-system-react/blob/master/components/tree/index.jsx#L28

Contributor guide

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.