SwampScheduler icon indicating copy to clipboard operation
SwampScheduler copied to clipboard

Course / section hover color-change

Open RobertConde opened this issue 2 years ago • 6 comments

  • On hover over a course/section, change the color of sections that belong to that course.
  • On hovering over a section (on the left), change the color of the same section (in the middle) if it exists
  • On hovering over a section (in the middle), change the color of other sections in the middle that belong to the same course

The goal is to easily identify groups of courses.

RobertConde avatar Sep 11 '23 01:09 RobertConde

Working on changing the color of sections in the middle when a course on the left is hovered. Progress is slow, new to Typescript and React

chrisnicollo avatar Sep 13 '23 02:09 chrisnicollo

This may help you.

This may be a little tough tho.

RobertConde avatar Sep 13 '23 02:09 RobertConde

And this too.

RobertConde avatar Sep 13 '23 02:09 RobertConde

I was able to get a basic version of it working using prop drilling of a state function defined in from ScheduleBuilder.tsx, although the code is currently messy, and I'm not sure if it's the most optimal right now

chrisnicollo avatar Sep 13 '23 02:09 chrisnicollo

Actually after skimming those stack overflow links, it seems like my solution is the somewhat 'expected' one. Code is still a mess though

chrisnicollo avatar Sep 13 '23 02:09 chrisnicollo

Well, commit it to your fork of this repo. Then make a pull request on yours to ours. I'll be happy to take a look 😃

RobertConde avatar Sep 13 '23 02:09 RobertConde