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

Allow values of .5 and -.5 without leading zeros #3008

Merged

Conversation

dmethvin-gov
Copy link

Allow .5 and -.5 without leading zero

Description

The USDS website uses Jekyll and its build process generates numbers like .5 rather than 0.5. Those are valid in CSS so they should be accepted.

I hope this is the right branch for the PR, it would be good to get this into final 2.0 so Jekyll sites will work.

Additional information

Related to #2866 and #2867, should fix uswds/uswds-sandbox#18.

I attempted to run npm test but got cascading errors once it reached "fractal component". The same errors occur on 2.0/beta7 so I don't think this change caused them.

@thisisdano
Copy link
Member

Thanks @dmethvin-gov. This seems like a reasonable way to be more flexible about our acceptable inputs. I'm going to move this along.

@thisisdano thisisdano changed the base branch from release-2.0 to external-allow-leading-zeros March 29, 2019 18:12
@thisisdano thisisdano merged commit eb7df50 into uswds:external-allow-leading-zeros Mar 29, 2019
@thisisdano
Copy link
Member

Merging into a local feature branch for testing.

@thisisdano
Copy link
Member

Follow this PR here: #3009

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.

None yet

2 participants