Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fr/customize/themes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const ThemeCard = ({ title, value, description, href }) => {
<h4 className="text-base font-medium text-gray-900 dark:text-gray-200">{title}</h4>
<label className="text-sm text-gray-500 dark:text-gray-400">« {value} »</label>
</div>
<div className="mt-1 prose-sm prose-gray mb-2 text-gray-500 dark:text-gray-400">{description}</div>
<div class="mt-1 prose-sm prose-gray mb-2 text-gray-500 dark:text-gray-400">{description}</div>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSX className incorrectly changed to HTML class

High Severity

The translation update changed className to class on the description div inside the ThemeCard JSX component. In JSX, class is not a valid attribute — className is required. This is the only element in the entire file using class while all 14 other elements correctly use className. This will cause the Tailwind styling (spacing, prose formatting, text color) to not be applied to the theme card description.

Fix in Cursor Fix in Web

<div className="flex items-center gap-1 mt-2 text-green-600 group-hover:text-green-800 dark:text-green-500 dark:group-hover:text-green-400">
<span className="text-sm font-medium">
Voir l’aperçu
Expand Down
Loading