Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight the selected filter #22

Merged
merged 2 commits into from
Feb 20, 2021
Merged

Highlight the selected filter #22

merged 2 commits into from
Feb 20, 2021

Conversation

ojchase
Copy link
Owner

@ojchase ojchase commented Feb 20, 2021

Fixes #15

Manipulates the elements to get the class that the OKCupid CSS uses to show the filter indicator. When a user-defined filter is selected, it receives the necessary class. When a different filter is selected, it loses it.

This does not touch the default agree/disagree/find out filters. In the normal case where one of those is selected, you'll see two indicators: one for the question listed as filtered by OKCupid (agree/disagree/find out) and another for additional filtering performed by this extension.

…ndicator

Minor bug: Possible to get two if you go back to a default okcupid filter, but our filter is still in play too, so that seems reasonable. But with that approach of "double selection" we should never deactivate the default filters' indicators.
@ojchase ojchase merged commit 5ffe6c6 into master Feb 20, 2021
@ojchase ojchase deleted the 15 branch February 20, 2021 09:01
ojchase added a commit that referenced this pull request Feb 20, 2021
Highlight the selected filter

Fixes #15

Manipulates the elements to get the class that the OKCupid CSS uses to show the filter indicator. When a user-defined filter is selected, it receives the necessary class. When a different filter is selected, it loses it.

This does not touch the default agree/disagree/find out filters. In the normal case where one of those is selected, you'll see two indicators: one for the question listed as filtered by OKCupid (agree/disagree/find out) and another for additional filtering performed by this extension.
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.

Highlight the selected filter
1 participant