asyncapi / conference-website

Website for the AsyncAPI online conference
https://conference.asyncapi.com
25 stars 100 forks source link

[BUG] Fix all invalid DOM property warnings across the project #439

Open toffee-k21 opened 4 weeks ago

toffee-k21 commented 4 weeks ago

Describe the bug.

Several DOM property warnings are being raised in the console due to the use of non-standard or incorrect property names. React requires camelCase property names, but multiple places in the project still use kebab-case, such as fill-rule, stroke-width, etc.

These warnings appear when running the project with React, and while they do not break functionality, they clutter the console and could lead to potential issues in future React versions.

Expected behavior

No warnings should appear in the console for invalid DOM properties, and all attributes should follow React’s camelCase convention.

Screenshots

Screenshot 2024-10-24 180758 Screenshot 2024-10-24 180805

How to Reproduce

  1. Run the project in a React environment (mention the version).
  2. Inspect the console for warnings like: "Warning: Invalid DOM property fill-rule. Did you mean fillRule?" "Warning: Invalid DOM property stroke-width. Did you mean strokeWidth?"

🥦 Browser

None

👀 Have you checked for similar open issues?

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

None

arpitkuriyal commented 4 weeks ago

i can do this . Making PR soon