Fixed dark mode rendering for filter by course button #52

Merged
dsoral merged 5 commits from dsoral_ui_change into ui_change 2026-10-04 19:35:46 +00:00
Member

Description

The text and background for the filter by course button did not switch from light mode style when changing to dark mode. Fixed by adding a dark mode style to the css for the border, text, and background. The background and border use css variables defined in /styles/components, whereas the text inherits its color.
Also adding unit testing for the FilterBar rendering and handler calling.

#31
Closes #31

Type of change

Bug fix and unit tests coverage

Testing

  • I added/updated tests.
  • I tested my changes locally.
    • I tested my changes with a laptop-size screen.
    • I tested my changes with a phone-size screen.
    • I tested my changes with a tablet-size screen.
  • I tested on the dev app (dev.cmustudy.com)

Screenshots/Recordings

Checklist

  • My code follows the project's existing style.
  • I have reviewed my changes.
  • Only the necessary files and lines have been changed.
  • This PR is ready for review.
## Description The text and background for the filter by course button did not switch from light mode style when changing to dark mode. Fixed by adding a dark mode style to the css for the border, text, and background. The background and border use css variables defined in /styles/components, whereas the text inherits its color. Also adding unit testing for the FilterBar rendering and handler calling. ## Related Issue https://git.cmu.dev/ScottyLabs/study/issues/31 Closes #31 ## Type of change Bug fix and unit tests coverage ## Testing - [x] I added/updated tests. - [x] I tested my changes locally. - [x] I tested my changes with a laptop-size screen. - [x] I tested my changes with a phone-size screen. - [x] I tested my changes with a tablet-size screen. - [ ] I tested on the dev app (dev.cmustudy.com) ## Screenshots/Recordings ## Checklist - [x] My code follows the project's existing style. - [x] I have reviewed my changes. - [x] Only the necessary files and lines have been changed. - [x] This PR is ready for review.
implemented unit tests for FilterBar
Some checks failed
Deploy to Railway Dev / Deploy to Dev (push) Has been cancelled
Test / Unit and integration tests (push) Successful in 4m18s
075c1bb3d3
remove unrelated package lock changes
All checks were successful
kennel/build skipped: no services or static sites defined
Deploy to Railway Dev / Deploy to Dev (push) Successful in 6m21s
Test / Unit and integration tests (push) Successful in 1m50s
Test / Unit and integration tests (pull_request) Successful in 1m48s
07932ccfb7
Member

Is it possible to make the vertical line and the down arrow on the course filter button the same gray as the rest of the outline instead of the brighter white color?

Is it possible to make the vertical line and the down arrow on the course filter button the same gray as the rest of the outline instead of the brighter white color?
updated dropdown chevron and seperator to match style
All checks were successful
kennel/build skipped: no services or static sites defined
Deploy to Railway Dev / Deploy to Dev (push) Successful in 1m58s
Test / Unit and integration tests (push) Successful in 1m47s
Test / Unit and integration tests (pull_request) Successful in 1m46s
49f258cbe5
Author
Member

Done! It uses the same color as the border.

Done! It uses the same color as the border.
annadavi removed their assignment 2026-10-04 02:39:59 +00:00
Member

For future reference, add us in the reviewers section (top right), not assignees (technically, the assignee is you). I moved it already for you, but check that in the future so we don't miss the PR.

For future reference, add us in the reviewers section (top right), not assignees (technically, the assignee is you). I moved it already for you, but check that in the future so we don't miss the PR.
annadavi approved these changes 2026-10-04 02:43:15 +00:00
annadavi left a comment

Be sure to update this branch with rebase or merge (you can use the dropdown on the right below) before making the merge commit into ui_change.

Be sure to update this branch with rebase or merge (you can use the dropdown on the right below) before making the merge commit into ui_change.
Merge branch 'ui_change' into dsoral_ui_change
All checks were successful
kennel/build skipped: no services or static sites defined
Test / Unit tests (push) Successful in 1m31s
Test / Integration tests (push) Successful in 4m35s
Test / Deploy to Production (push) Has been skipped
Test / Deploy to Dev (push) Successful in 1m58s
403b814014
dsoral merged commit 576a5ce620 into ui_change 2026-10-04 19:35:46 +00:00
dsoral deleted branch dsoral_ui_change 2026-10-04 19:36:10 +00:00
Sign in to join this conversation.
No description provided.