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

Flex size support #15

Merged
merged 9 commits into from
Feb 18, 2023
Merged

Flex size support #15

merged 9 commits into from
Feb 18, 2023

Conversation

lievenjanssen
Copy link
Contributor

Currently I generate flex: 1 1 $value; where $value is the flex size. I was wondering if this is the correct approach or if I should just set the flex-basis like this flex-basis: $value;. What do you think?

@philmtd
Copy link
Owner

philmtd commented Feb 17, 2023

Thank you (again) for this PR!

Currently I generate flex: 1 1 $value; where $value is the flex size. I was wondering if this is the correct approach or if I should just set the flex-basis like this flex-basis: $value;. What do you think?

I think this is correct and would work according to the defaults of fxFlex in Flex Layout (checking here https://github.com/angular/flex-layout/wiki/fxFlex-API and here https://github.com/angular/flex-layout/blob/master/projects/libs/flex-layout/flex/flex/flex.ts).

So I think this implementation should be fine.

Copy link
Owner

@philmtd philmtd left a comment

Choose a reason for hiding this comment

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

I have one suggestion (twice). Could you check that? Otherwise this looks good to me.

And before I can merge it, you'd need to kindly resolve the conflicts that happend due to the other already merged PRs 🙂

src/lib/flex-size-attributes.scss Outdated Show resolved Hide resolved
src/lib/flex-size-classes.scss Outdated Show resolved Hide resolved
@lievenjanssen
Copy link
Contributor Author

you'd need to kindly resolve the conflicts that happened due to the other already merged PRs

Fixed. This is ready to be merged I think.

@philmtd
Copy link
Owner

philmtd commented Feb 18, 2023

Thanks! Looks good to me. I'll try to document and release everything in the next days. Is that okay with you, or do you need it asap?

@philmtd philmtd merged commit 341af86 into philmtd:master Feb 18, 2023
@philmtd philmtd linked an issue Feb 18, 2023 that may be closed by this pull request
@lievenjanssen
Copy link
Contributor Author

Thanks! Looks good to me. I'll try to document and release everything in the next days. Is that okay with you, or do you need it asap?

I suggest to still do the increment change for gap selectors before we do a major version release. I would want to use it asap but I can temporarily work around that.

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.

Flex-layout fxFlex functionality not fully supported
2 participants