-
Notifications
You must be signed in to change notification settings - Fork 16.5k
fix(sqllab): add colorEditorSelection token for visible text selection #36932
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
base: master
Are you sure you want to change the base?
fix(sqllab): add colorEditorSelection token for visible text selection #36932
Conversation
|
CodeAnt AI is reviewing your PR. Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
Code Review Agent Run #47a449Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
✅ Deploy Preview for superset-docs-preview canceled.
|
Nitpicks 🔍
|
superset-frontend/packages/superset-ui-core/src/components/AsyncAceEditor/index.tsx
Outdated
Show resolved
Hide resolved
|
CodeAnt AI finished reviewing your PR. |
044d2a8 to
8d2abc2
Compare
Code Review Agent Run #4f1046Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
8d2abc2 to
d0837ad
Compare
|
CodeAnt AI is running Incremental review Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #36932 +/- ##
===========================================
+ Coverage 0 68.17% +68.17%
===========================================
Files 0 639 +639
Lines 0 47659 +47659
Branches 0 5204 +5204
===========================================
+ Hits 0 32493 +32493
- Misses 0 13886 +13886
- Partials 0 1280 +1280
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Code Review Agent Run #a39927Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
SUMMARY
The Ace Editor text selection highlight in SQL Lab uses
colorPrimaryBgHover, which is too similar to the active line color(colorPrimaryBg). This makes text selection nearly invisible, especially when selecting text on the current line.Changes:
colorEditorSelectiontoSupersetSpecificTokensinterfaceAsyncAceEditorto usecolorEditorSelectionwith fallback tocolorPrimaryBgHoverfor backwards compatibilityThis allows theme configurations to specify a distinct selection color while maintaining backwards compatibility with existing themes.
BEFORE/AFTER SCREENSHOTS
Before:

After:

TESTING INSTRUCTIONS
To test with a custom color, add to your
superset_config.py:ADDITIONAL INFORMATION