Skip to content

flex-grow and flex-shrink typed as Number #64

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

Merged
merged 1 commit into from
Jan 23, 2021

Conversation

andywhite37
Copy link
Contributor

@andywhite37 andywhite37 commented Jul 24, 2017

The flex shorthand, flex-grow, and flex-shrink properties appear to allow Numbers as values, not just Ints. I ran into this tonight while trying to implement a flex-based slider control.

See below:

https://drafts.csswg.org/css-flexbox-1/#flex-property

@CLAassistant
Copy link

CLAassistant commented Jul 24, 2017

CLA assistant check
All committers have signed the CLA.

@andywhite37
Copy link
Contributor Author

Hello, I just discovered I had this long-forgotten open pull request. It's just a tiny change, and not likely to make much of a difference, but I just got it up-to-date with master, so it should be mergable.

@thomashoneyman thomashoneyman changed the base branch from master to main October 6, 2020 03:09
@thomashoneyman
Copy link
Contributor

thomashoneyman commented Jan 21, 2021

I see that flex can take number values, not just integers, as in your link (https://drafts.csswg.org/css-flexbox-1/#flex-property) and Mozilla (https://developer.mozilla.org/en-US/docs/Web/CSS/flex). I think this is reasonable.

@JordanMartinez
Copy link
Contributor

@andywhite37 Could you add a summary of this change in the "Breaking Changes" section of this repo's CHANGELOG.md file? We should merge after that.

The `flex` shorthand, `flex-grow`, and `flex-shrink` properties appear to
allow Numbers as values, not just Ints.  I ran into this tonight while
trying to implement a flex-based slider control.

See below:

https://drafts.csswg.org/css-flexbox-1/#flex-property
@andywhite37
Copy link
Contributor Author

@JordanMartinez - done, let me know if that looks okay. Thanks to you and @thomashoneyman for noticing this PR - it was no big deal, but happy to see it get merged!

@JordanMartinez JordanMartinez merged commit 69cd4a0 into purescript-contrib:main Jan 23, 2021
@JordanMartinez
Copy link
Contributor

Thanks!

@andywhite37 andywhite37 deleted the flex-number branch January 23, 2021 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants