Skip to content
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

fix: Inconsistent selection behavior in project explorer #3341 #3356

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

d1vyanshu-kumar
Copy link
Contributor

@d1vyanshu-kumar d1vyanshu-kumar commented Jan 25, 2025

If your code changes how something works on the device (i.e., it affects the companion):

  • I branched from master
  • My pull request has master as the base

What does this PR accomplish?

  • Updated setSelected method in ProjectFolder to add and remove ode-ProjectRowHighlighted and highlight-folderRow styles.
  • Removed background: background-color; from CSS.
  • Added .highlight-folderRow CSS class with background-color: #fff6c3;.

Fixes #3341

@AppInventorWorkerBee
Copy link
Collaborator

Can one of the admins verify this patch?

@d1vyanshu-kumar
Copy link
Contributor Author

@SusanRatiLane, could you please review my pull request?
Thanks!

@SusanRatiLane SusanRatiLane self-assigned this Jan 27, 2025
Copy link
Contributor

@SusanRatiLane SusanRatiLane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not clear why we need a new css class. For one thing, the highlight color in Classic is yellow, and the highlight color in Neo is purple. This makes them both yellow.

What does ode-ProjectRowHighlighted look like in Ya.css (Classic) and neo.css (Neo)? Can they be fixed to highlight the rows correctly?

@d1vyanshu-kumar d1vyanshu-kumar force-pushed the Inconsistent-selection-behavior branch from a6a5756 to 3943fea Compare January 28, 2025 12:09
@d1vyanshu-kumar
Copy link
Contributor Author

d1vyanshu-kumar commented Jan 28, 2025

@SusanRatiLane, could you please review it now? I've made some necessary changes to address the issue mentioned earlier. Previously, I thought that styles conflicting with ode-ProjectRowHighlighted might override the intended styles. However, I realized that I was mistaken and made the corrections

@d1vyanshu-kumar
Copy link
Contributor Author

;

Screen.Recording.2025-01-28.at.6.02.55.PM.mov

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.

Inconsistent selection behavior in project explorer
3 participants