-
Notifications
You must be signed in to change notification settings - Fork 67
fix (design library): fix spinner showing #3605
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
Conversation
WalkthroughUpdates editor.scss to adjust spinner container styling: adds white background and z-index: 1 to .stk-spinner-container, and sets z-index: -1 when .stk-hide-spinner is applied. No logic or control-flow changes. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🧪 Early access (Sonnet 4.5): enabledWe are currently testing the Sonnet 4.5 model, which is expected to improve code review quality. However, this model may lead to increased noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience. Note:
Comment |
🤖 Pull request artifacts
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/components/design-library-list/editor.scss (1)
251-254: Consider transitioning z-index or adding pointer-events: none.While the opacity transition provides a smooth fade-out, the
z-indexchange is instant. During the fade-out period (0.3s), the spinner container remains atz-index: 1withopacity: 0, which might still block pointer events to elements beneath it until the transition completes.Consider one of these approaches:
Option 1: Add pointer-events control
&.stk-hide-spinner { opacity: 0; z-index: -1; + pointer-events: none; }Option 2: Use visibility for instant hiding
&.stk-hide-spinner { opacity: 0; z-index: -1; + visibility: hidden; }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/components/design-library-list/editor.scss(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
- GitHub Check: PHP 8.2 and WP 6.6.2
- GitHub Check: PHP 8.2 and WP latest
- GitHub Check: PHP 8.2 and WP 6.5.5
- GitHub Check: PHP 7.3 and WP 6.5.5
- GitHub Check: PHP 8.2 and WP 6.7.2
- GitHub Check: PHP 7.3 and WP latest
🔇 Additional comments (1)
src/components/design-library-list/editor.scss (1)
249-250: LGTM! Background and z-index ensure spinner visibility.The white background creates a blocking layer that ensures the spinner is visible and prevents interaction with underlying content during loading. The
z-index: 1positions it above the design library items.
Summary by CodeRabbit