-
Notifications
You must be signed in to change notification settings - Fork 768
Feature Request: Multiplier value for FxLayoutGap #907
Comments
@CharlieGreenman - @CaerusKaru and I really like this idea... |
@CharlieGreenman I think this is an EXCELLENT idea. Somehow it seems like a feature that was here all along... The only question is on design, otherwise we could get this in in no time. So... should this just be for I'm leaving these questions up to you Charlie, let me know what you think! |
@CaerusKaru that is a very good question, and it is very kind of you to leave the question up to me.
Good point, makes sense for it to be a library-wide syntax for any spacing related apis. The following are the api's that this multiplier should apply to:
They are the only apis that deal with
That is also a very good question. Similar to how we currently offer a provider/token for breakpoints, is how we should approach this one. Something like offering:
That would be ^ along the lines of what I am thinking of. It would throw if developer supplies a value other than whole numbers, or 0.5, to ensure layouts across app are inconsistent. Thank you, and by all means, would be more than happy to discuss more. |
Sounds good on making it only apply to those two directives, and probably also I was thinking maybe we would add this to Do you want to put together a PR for this, or would you rather we implement it? If you want the commit credit, I think you deserve it! |
@CaerusKaru I will work on it from my end. If it takes longer than by this Sunday, I will let you know. Thank you. |
Hey won't be able to get around to this, this weekend. If we have the option to keep this around for a week, or two, I can knock this out. |
It’s all yours, no rush! |
Perfect 🙂 |
@CaerusKaru still working on it. That being said, I like this as an open source project, more so than the rest. Obviously any code base is difficult for the first time. If there is a way we can be in direct contact so that I can ask for pointers here and there, that would be great. In return for time given, I would contribute on this and others in the near future. Thank you. |
Hi @CharlieGreenman - let me create a Slack channel for team contributors. ;-). |
@CharlieGreenman - please send me your email to ThomasBurleson@gmail.com |
Not sure if anyone is still actively waiting on this at this point, but I've roughed up an implementation in #1383, which should land in the next release. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Feature Request
What is the desired behavior?
FxLayoutGap should have multiplier for attaining a pixel value.
What is the use-case or motivation for the desired behavior?
Well this is an Angular library. Many people who use Angular use Angular Material. Was just playing around with the idea of fxLayoutGap taking in a multiplier. So for instance, Angular Material Layout is generally in multiples of 8, with the exception of icons which can be 4. So
fxLayoutGap="1x"
would be8px
.fxLayoutGap="2x"
would be 16pxIs there anything else we should know?
Nothing other than this is just an idea. Using flex in a css setting, allows us to set a constant that is there already at build time. It's comforting knowing that if we need to change the value across the board, we can do that for our entire app. Right now just throwing out having a default value based on material. However, having a multiplier based on one's style sheet is just a cool idea. Having a multiplier for
fxLayoutGap
that is stamped with the performance stamp of approval, would be fantastic. Thank you!^ something equivalent to above, but for fxLayoutGap
The text was updated successfully, but these errors were encountered: