-
Notifications
You must be signed in to change notification settings - Fork 120
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
[sparkle] - chore: ditch z-index classes #10212
base: main
Are you sure you want to change the base?
Conversation
…ndex classes - Simplified import order rules by removing categorized comments and redundant groups - Enforced a new ESLint rule to prevent the use of z-index (s-z-) Tailwind classes in JSX
- Updated ESLint rules to split a long selector onto multiple lines for better readability - Removed z-index related tailwind classes (`s-z-*`) from various components to comply with new linting rules forbidding z-index usage - Added missing newline at end of .eslintrc.js file to follow convention
- Updated the package-lock.json and package.json to reflect the new version number
Test comment Morgan |
I've reviewed the changes in this PR which focuses on removing z-index usage from Sparkle components and implementing a linting rule to prevent future usage. Here's my detailed review based on our coding rules: Positive Aspects
Suggestions for Improvement
Potential Risks
ConclusionThis PR aligns well with our coding rules, particularly [GEN1] and [GEN2], by enforcing a consistent and simpler approach to component layering. The changes are well-structured and the addition of the ESLint rule will help maintain this standard. Recommendation: Approve with the suggestion to add more documentation about the reasoning behind the z-index removal and guidelines for handling component layering without z-index. |
Description
This PR aims at ditching all existing z-indexes on sparkle components and to add a linting rule to prevent from adding new ones.
As we are not doing anything extremely fancy for now there should be no need to use z-indexes. Also, adding z-indexes conflicts with indexes from Radix.
Risk
Quite important blast radius UX wise
Deploy Plan