Skip to content

The leading '0 ' in the class string is a syntax typo that gets evaluated as a class name "0" - #643

Open
aniket866 wants to merge 1 commit into
containers:mainfrom
aniket866:fix/leading-zero-typo
Open

The leading '0 ' in the class string is a syntax typo that gets evaluated as a class name "0"#643
aniket866 wants to merge 1 commit into
containers:mainfrom
aniket866:fix/leading-zero-typo

Conversation

@aniket866

@aniket866 aniket866 commented Aug 5, 2026

Copy link
Copy Markdown

Closes #638

Typo in Tailwind Class String

  • File Reference: FeaturesCarousel/index.tsx
  • Code: '0 bg-white text-gray-700...'
  • Reason: The leading '0 ' in the class string is a syntax typo that gets evaluated as a class name "0". While harmless in some browsers, it introduces invalid markup and shows that styling classes are not fully sanitized.

Signed-off-by: aniket866 <iamaniketkumarmaner@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: The leading '0 ' in the class string is a syntax typo that gets evaluated as a class name "0".

1 participant