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

config-options: fix JavaScript selector #36

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

ru-fu
Copy link
Contributor

@ru-fu ru-fu commented Mar 19, 2024

The "expand all" button wasn't always displayed correctly. This is because the "first-of-type" selector isn't meant to distinguish between classes (only types).
So instead of using "first-of-type", select all elements with the ".configoption" class and then undo the addition of the "expand all" button for all elements that are preceded by another ".configoption" element.

Fixes #35

The "expand all" button wasn't always displayed correctly. This is
because the "first-of-type" selector isn't meant to distinguish
between classes (only types).
So instead of using "first-of-type", select all elements with the
".configoption" class and then undo the addition of the "expand all"
button for all elements that are preceded by another ".configoption"
element.

Fixes canonical#35

Signed-off-by: Ruth Fuchss <[email protected]>
@ru-fu ru-fu merged commit 52c59c7 into canonical:main Mar 27, 2024
1 check passed
@ru-fu ru-fu deleted the fix-expand-all branch March 27, 2024 13:25
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.

expand all for config options doesn't always show up
1 participant