FIRST-Tech-Challenge / FIRST-Tech-Challenge/scorekeeper

[ui] After switching tabs, grid/list toggles on "All Events" and "Off-Season" on the homepage no longer have selected color

Open
#867 0 comments 0 reactions 0 assignees View on GitHub
ftc-events
Dominant language
No language data
Stars
110
Forks
26
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
On the home page, the "All Events," "Off-Season," and "Kickoff" tabs have a toggle switch to change between grid and list views of events. Clicking one of the buttons changes the view and causes that button to be selected, changing its background color. But, after changing tabs from "All Events" to "Off-Season" or "Kickoff," or from "Off-Season" to "Kickoff," the toggles on "All Events" and "Off-Season" stop changing color correctly.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to FTC-Events. Observe the toggles change color as expected.
2. Click on "Off-Season," and back to "All Events." Observe that neither toggle has the selected grey color.
- In some cases, (i.e. on the initial switch back to the tab) the first click does color the element correctly, but subsequent clicks no longer respond with color.
3. Click on "Off-Season," and observe the color works correctly.
4. Click on "Kickoff" and return to "Off-Season," and observe the color also stops working.

**Expected behavior**
No matter how tabs are switched/user navigates the home page, each toggle works independently and changes color depending on if the display is grid/list. There shouldn't be a case where both are "white"/deselected.

**Screenshots**

https://github.com/user-attachments/assets/57027de2-6cc3-4b2f-b609-3082945d25b7

**Device (please complete the following information):**
- OS: macOS 15.4.1 (24E263)
- Browser: Firefox 137.0.1 (aarch64) & Chrome 136.0.7103.48 (Official Build) (arm64)
- FTC Events as of 2025/May/04 17:40 PDT

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.