-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: export consts for className and slotClassNames and replace static usages part 2 #12731
chore: export consts for className and slotClassNames and replace static usages part 2 #12731
Conversation
@@ -129,15 +121,7 @@ const Card: React.FC<WithAsProp<CardProps>> & | |||
}; | |||
|
|||
Card.displayName = 'Card'; | |||
Card.deprecated_className = 'ui-card'; | |||
|
|||
Card.slotClassNames = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for this, as there are already dedicated Card components for each slot.
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: ac4cfe80d65beab97575bf1f3d84c5c04eaf8bfa (build) |
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
…tic usages part 2 (microsoft#12731) * -converted Box and Button components * -converted Card* components * -added changelog * -added breaking change changelog
Added const for className and slotClassNames inside
Box
,Button
* andCard
* components.BREAKING CHANGE
Removed
Card.slotClassNames
as there are already dedicated components for each different type ofCard
* component. ReplaceCard.slotNames.componentName
usage with the accordin constcomponentNameClassName
. For example