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

Make percentage input consistent #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

s3cur3
Copy link

@s3cur3 s3cur3 commented Jan 6, 2025

This makes the Percentage feature more consistent, such that the input is accepted as a value between 0 and 100. Previously the input was required to be a ratio (between 0 and 1), but it was then displayed as a percentage (effectively "#{ratio / 100}%"). With this change, the formatting of the input and later display match.

Before After
before after

Resolves tompave/fun_with_flags#188

This makes the Percentage feature more consistent, such that the input is accepted as a value between 0 and 100. Previously the input was required to be a ratio (between 0 and 1), but it was then displayed as a percentage (effectively `"#{ratio / 100}%"`). With this change, the formatting of the input and later display match.
@s3cur3 s3cur3 mentioned this pull request Jan 11, 2025
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.

Make percentage input consistent
1 participant