Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

poll: what should be the default behavior for fxFlex? #689

@CaerusKaru

Description

@CaerusKaru

This issue tracks the possibility of changing the default behavior for the fxFlex directive. Currently, the behavior is as follows:

  • When the input is an integer, this defaults to a percentage value input for fxFlex
  • When the input is any other singular value, it's interpreted as the intended flex-basis value and results in flex: 1 1 <input> with min-width and max-width applied (assuming row format)
  • When the input is three values, it's interpreted as a direct translation to the CSS flex property, with min/max-width applied according to the algorithm specified here
  • When the input is longer than three values, it is truncated to the first three values

I'll list some alternative options for fxFlex behavior below, please vote for your preferred option, or feel free to add your own. If you like the current behavior, please do not add comments, but simply vote for this comment.

Metadata

Metadata

Assignees

Labels

discussionFurther discussion with the team is needed before proceedinghas prA PR has been created to address this issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions