You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Class names and style properties are resolved in the following order:
92
+
93
+
1. Generate class names for child components.
94
+
- Compute class names and style properties coming from each child (including component defaults, utility classes, and props).
95
+
96
+
2. Remove duplicate component properties.
97
+
- Deduplicate only when both the `key:value` pair and the `style-order` match.
98
+
99
+
3. If the key:value matches but the `style-order` differs, the property is not removed — the later/higher-priority style will take precedence.
100
+
- Example: In other words, the `display: flex` implemented internally by `Center` and the `display: flex` provided directly by the user have different style-orders, so they are not removed, and the final style is applied according to priority.
101
+
102
+
4. Generate the parent component’s className based on the merged result.
103
+
- After child classNames are generated and duplicates (per rules above) removed, compute/merge the parent className and final style output.
0 commit comments