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

NzFlex - Support for reverse flex direction #8832

Open
dibfibo opened this issue Oct 9, 2024 · 0 comments
Open

NzFlex - Support for reverse flex direction #8832

dibfibo opened this issue Oct 9, 2024 · 0 comments

Comments

@dibfibo
Copy link

dibfibo commented Oct 9, 2024

What problem does this feature solve?

With nz-flex, it isn't possible to set reverse flex direction. It is a restriction that cause devs to incapulate(wrap) nz-flex in a custom component.Now i have something like this.
Logic:
vertical = input(true, {...})
reverse = input(false, {...})
protected flexClass = () => ({reverse: this.reverse()})

Template =
<nz-flex [ngClass]="flexClass" >...

In a scss i overwrite default flex direction using ng-deep inside host selector for nz-flex.reverse element.

What does the proposed API look like?

It can be a boolean input "reverse", alias "nzReverse", to maintain compatibiliy with vertical input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants