-
Notifications
You must be signed in to change notification settings - Fork 595
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
Allow Hiding Skill's Percentage #87
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding another showPercentage
key, I would recommend using the existing percentage
key by hiding the percentage number when this key is not defined or empty. This approach is not just cleaner, but it prevents breaking existing sites.
Example:
- name: Skill X
percentage: 90
color: danger
# Percentage won't show
- name: Skill Y
color: danger
# Percentage won't show
- name: Skill Z
percentage:
color: danger
Hi, thanks for your fast response. If your concern is more about preventing breaking the existing sites, I could just add a check in the new if, checking if the attr exists. |
My bad, didn't understand it that way. |
Hi, sorry for the late reply. I did not get the notification. With your proposal, you cannot decide whether you want for some and not for others. There are different sections and with the solution, I propose you can do several things. With your proposal, it is either YES or NO. |
I don't understand why we might need to hide the percentage label for some skills and not for others. This behavior seems inconsistent. |
you can instead just do something like Edit: like this here. |
This gives the possibility to the developer of deciding if the % is shown or not.