"Show Sponsored Images" toggle button from "Customize Dashboard" window at Brave Browser landing page is not grayed out when toggled off using the parent toggle button ("Show Background Images")

Description of the issue:

“Show Sponsored Images” toggle button from “Customize Dashboard” window is not grayed out when toggled off using the parent toggle button “Show Background Images”, while it is grayed out if it is toggled off directly. This is a bug and not a defect because it can be also observed at production Brave browser in Ubuntu 18.04.5 LTS.

Preconditions:

“Show Background Images” & “Show Sponsored Images” toggle buttons must be on (active state).

How can this issue be reproduced?

  1. Open Brave browser (landing page).
  2. Click “Customize” button (left section)
  3. Click “Show Background Images” toggle button to toggle it off.

Actual result:

Both parental “Show Background Images” & child “Show Sponsored Images” toggle buttons become inactive (move to the left) but child “Show Sponsored Images” toggle button does not turn grayed out, instead it remains in “active” state color.

Expected result:

Both “Show Background Images” & “Show Sponsored Images” toggle buttons should become inactive (move to the left) and color of the toggle on should turn grayed out.

Brave Version:


Version 1.24.64 Chromium: 90.0.4430.72 (Official Build) beta (64-bit)

Additional Information:

It can be confirmed that it is expected for the child “Show Sponsored Images” toggle button to also turn gray when inactive since when parent toggle button is active, child toggle button can be turned off and color is grayed out. In fact, when it is deactivated and then the parent is deactivated, the child that was previously inactivated correctly (to the left and color gray) turns to activated color (some tone of red or orange).