Skip to content

Standardize on "text", "secondaryText", and "tertiaryText" #4772

@dzearing

Description

@dzearing

A number of components have inconsistent naming conventions for rendering the text.

We have internally discussed and agreed we want to standardize all things:

Proposal:

Text should be rendered with the text prop.
Secondary text should be rendered with the secondaryText prop.

Work:

Persona: currently has "primaryText". This should be deprecated in favor of "text".
ContextualMenuItem: currently uses "name", deprecate in favor of "text"
Button: currently uses "description", deprecate in favor of "secondaryText"
ComboBox items: currently uses "value", deprecate in favor of "text"

These should be cleaned up, warnings added, and examples updated.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions