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

Add option to force horizonal steps header in form wizard #15392

Conversation

ziming
Copy link
Contributor

@ziming ziming commented Jan 21, 2025

Description

Currently on mobile devices, form wizard steps header is almost always vertically stacked even if I hide the all step header labels with ->hiddenLabel(). This makes the form wizard look unpleasant as can be seen below

CleanShot 2025-01-21 at 21 14 34

What my PR does is you can now do this:

Wizard::make($steps)
    ->forceHorizontalStepsHeader();

And the horizontal steps header will be forced. Looking like this

CleanShot 2025-01-21 at 21 20 12

The horizontal scroll bar if not all can fit into the screen

CleanShot 2025-01-21 at 21 20 45

Hence making it better for those of us who didn't like the vertically stacked steps header look and want to force horizontal at all times even on mobile

@danharrin
Copy link
Member

Hi, I would suggest using CSS to add these classes to .fi-fo-wizard-header. Then we do not need to introduce a new PHP method for a styling preference. Many thanks.

@danharrin danharrin closed this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants