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

Show muted colors for conditions in legend #1257

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

mschoettle
Copy link
Contributor

@mschoettle mschoettle commented Nov 25, 2024

As per discussion in #1256.

This PR adds the same classes for the different license conditions so that the colours match what is shown in the table.

image

@mlinksva mlinksva merged commit c973974 into github:gh-pages Nov 25, 2024
@mschoettle mschoettle deleted the consistent-legend branch November 25, 2024 21:42
@@ -40,14 +40,15 @@ class Choosealicense
# Dynamically add annotations as title attribute to rule list items
for ruletype, rules of window.annotations
for rule in rules
licenseLiElement = $(".license-#{ruletype} .#{rule["tag"]}")
# Only select license elements in table, not legend
licenseLiElement = $("td.license-#{ruletype} .#{rule["tag"]}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Belatedly noticing, I think this may have removed the tooltip from https://choosealicense.com/licenses/ and individual license pages.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Fixed in #1259

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.

2 participants