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

feat: add option to reverse order on specific breakpoints to FluentStack/FluentGrid #3278

Open
MarvinKlein1508 opened this issue Jan 31, 2025 · 2 comments
Assignees
Labels
status:needs-investigation Needs additional investigation

Comments

@MarvinKlein1508
Copy link
Contributor

🙋 Feature Request

I was thinking about reasons why I am not using the FluentStack and FluentGrid components so much. And one of them is that I cannot control the order behaviour of the columns for other devices.

On desktop for example I have this view:

Image

On mobile I would like to have the filter area to be displayed first:

Image

In Bootstrap this can be achieved by providing order-* parameters:

Image

I would love to be able to have some similiar feature like this for the fluent variants as well.

@microsoft-github-policy-service microsoft-github-policy-service bot added the triage New issue. Needs to be looked at label Jan 31, 2025
@rpodevns
Copy link
Contributor

This sample doesn't provide the variants you're looking for but accomplishes something similar with FluentGrid using minimal css. Haven't look at FluentStack.

<FluentGrid>
    <FluentGridItem xs="12" sm="12" lg="3" class="sidebar">
        <div class="card">
            Sidebar (Appears first on small screens, right on large screens)
        </div>
    </FluentGridItem>

    <FluentGridItem xs="12" sm="12" lg="9" class="content">
        <div class="card">
            Main Content (Appears second on small screens, left on large screens)
        </div>
    </FluentGridItem>

</FluentGrid>

<style>
    .sidebar { order: 1; }
    .content { order: 2; }

    @@media (min-width: 960px) {
        .fluent-grid { flex-wrap: nowrap!important; }
        .sidebar { order: 2; }
        .content { order: 1; }
    }
</style>

@vnbaaij
Copy link
Collaborator

vnbaaij commented Feb 1, 2025

@dvoituron is this something we want to look at for v5 (like the Margin/Padding addition)?

@vnbaaij vnbaaij added status:needs-investigation Needs additional investigation and removed triage New issue. Needs to be looked at labels Feb 1, 2025
@dvoituron dvoituron self-assigned this Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:needs-investigation Needs additional investigation
Projects
None yet
Development

No branches or pull requests

4 participants