Skip to content

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

Open
@interactivellama

Description

@interactivellama

"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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions