Skip to content

Remove deprecated <componentName>ClassName exports #22132

Description

@spmonahan

Problem

Per #21847 static class names have been added to all Fluent UI v9 components. All components now export an object called <componentName>ClassNames where the keys are slot names and the values are the corresponding class name for that slot per #21206.

Previously all components applied a static class name to their root slots and exported this string as <componentName>ClassName. Adding the exported object makes this string export redundant and it has been marked as @deprecated in all components. Because of this deprecation we must disable eslint rules in several places which frustrates the development process.

Proposal

Prior to moving from RC to Stable v9 we should remove all deprecated <componentName>ClassName exports.

Packages with static class names

  • Unstable
    • react-input
    • react-card
  • Stable
    • react-provider
    • react-radio
    • react-accordion
    • react-avatar
    • react-badge
    • react-button
    • react-checkbox
    • react-divider
    • react-image
    • react-label
    • react-link
    • react-menu
    • react-popover
    • react-text
    • react-tooltip

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions