[3.0] Theme split (wave 4, part 16) — drop the group membership highlight, which highlights nothing - #9437
Open
albertlast wants to merge 1 commit into
Conversation
Picking a primary group ran highlightSelected(), which saved the row's class, put it back, and then set the row to "windowbg". Every row in that list is already "windowbg", so the function has never changed anything. It reads like a leftover from when the rows alternated between two classes; the striping comes from CSS now. Clicking through every radio on release-3.0 leaves all three rows at class="windowbg" with the background they started with, which is what happens without the script as well. Signed-off-by: Mathias Alberts <mathiaspapealbert@hotmail.com> Signed-off-by: albertlast <mathiaspapealbert@hotmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Part of the #7933 split, wave 4.
Profile area.
Profile → Group Membership attaches a handler to every primary-group radio:
which runs:
Every row in that list is emitted as
<div class="windowbg" id="primdiv_N">, so the lastline sets the class it already has. The function has never changed anything on the page. It
reads like a leftover from when the rows alternated between two classes — the striping is
CSS now.
The theme branch deletes it and adds nothing in its place, which is what this does.
id="primdiv_N"stays on the rows, as it does there.Checked
On
release-3.0, clicking each enabled radio in turn:primdiv_1windowbgrgb(240, 244, 247)primdiv_2windowbgrgb(253, 253, 253)primdiv_0windowbgrgb(240, 244, 247)Same three rows, same two values, before any click and after every one of them — and the
same again with this applied. The radios still select, and nothing else on the page reads
highlightSelected,prevDivorprevClass.(The area needs
show_group_membershipon, your own profile, and two groups that can beprimary, or it does not render at all.)
Issues References (Fixes|Related|Closes)
Part of #7933
Co-Authored-By: live627 john@jbrock.us