Skip to content

fix: include category chip bar in cursorLighting dimming rules (Fixes #4240) - #4255

Open
waterWang wants to merge 1 commit into
code-charity:masterfrom
waterWang:fix/category-bar-cursor-lighting
Open

fix: include category chip bar in cursorLighting dimming rules (Fixes #4240)#4255
waterWang wants to merge 1 commit into
code-charity:masterfrom
waterWang:fix/category-bar-cursor-lighting

Conversation

@waterWang

Copy link
Copy Markdown

Description

Fixes #4240

When the cursorLighting feature ("Dim YouTube's Pages, except what I mouse-over!") is enabled, the homepage category chip bar (ytd-feed-filter-chip-bar-renderer) was not included in the dimming CSS selectors.

This caused the chip bar to appear blank/invisible while the rest of the page dimmed, and hovering over it did not restore visibility.

Changes

  • Added ytd-feed-filter-chip-bar-renderer and #chips-wrapper to the cursorLighting dimmed element selectors (opacity: 0.7)
  • Added corresponding hover selectors to restore full opacity (opacity: 1) on hover

Testing

  • Verified the CSS selectors match the YouTube homepage DOM structure
  • The chip bar will now dim consistently with other page elements and undim on hover

…ode-charity#4240)

The cursorLighting feature (Dim YouTube's Pages except what I mouse-over)
was missing CSS selectors for the category chip bar
(ytd-feed-filter-chip-bar-renderer / #chips-wrapper).

When cursorLighting is enabled, the chip bar is now properly dimmed
to opacity .7 and restored to opacity 1 on hover, matching the
behavior of other page elements.
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.

Category bar on Homepage is blank when dimmed and does not undim when hovering over🐞

1 participant