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

fix(progress): wrong error on validating sum of rounded percents #954

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

ryamaguchi0220
Copy link
Contributor

@ryamaguchi0220 ryamaguchi0220 commented Aug 25, 2019

Description

I propose to store unrounded percents in the data-percent attribute instead of rounded percents.

Here is what causes the wrong error.
① Store rounded percents in the data-percent attribute here
② Get the rounded percents here
③ Validate sum of the rounded percents here.
As this comment indicates, it is not expected to pass rounded percents to the percent().

Testcase

https://jsfiddle.net/yxLr6mut/

Closes

#953

@lubber-de lubber-de added state/awaiting-reviews Pull requests which are waiting for reviews lang/javascript Anything involving JavaScript type/bug Any issue which is a bug or PR which fixes a bug labels Aug 25, 2019
Copy link
Contributor

@exoego exoego left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Member

@y0hami y0hami left a comment

Choose a reason for hiding this comment

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

LGTM

@y0hami y0hami added this to the 2.7.8 milestone Aug 25, 2019
Copy link
Member

@lubber-de lubber-de left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@ColinFrick ColinFrick left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@prudho prudho left a comment

Choose a reason for hiding this comment

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

LGTM

Thank you for your PR !

@y0hami y0hami removed the state/awaiting-reviews Pull requests which are waiting for reviews label Aug 27, 2019
@y0hami y0hami changed the title [Progress] Fix wrong error on validating sum of rounded percents fix(progress): wrong error on validating sum of rounded percents Aug 27, 2019
@y0hami y0hami merged commit 4e4c178 into fomantic:develop Aug 27, 2019
@y0hami
Copy link
Member

y0hami commented Aug 27, 2019

@all-contributors please add @ryamaguchi0220 for code and bug

@allcontributors
Copy link
Contributor

@hammy2899

I've put up a pull request to add @ryamaguchi0220! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/javascript Anything involving JavaScript type/bug Any issue which is a bug or PR which fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants