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

Form fields vertical per default #2899

Open
anxgstadler opened this issue Sep 24, 2024 · 0 comments
Open

Form fields vertical per default #2899

anxgstadler opened this issue Sep 24, 2024 · 0 comments
Assignees
Labels

Comments

@anxgstadler
Copy link

Describe the bug
The documentation clearly states: "By default, form elements are displayed in a horizontal layout, with the label and input field side by side."
See: https://orchid.software/en/docs/field/#designing-input-interfaces

However, I need to add horizontal() to each and every field to get the label next to the input field. The default rendering seems to be vertical instead of horiziontal.

Now, this ticket might be either ...

  1. a documentation issue. If so, please update the docs.
  2. or a bug. If so, please make the fields behave correctly.
  3. or result in a feature request: It would be nice if I could set some configuration somewhere that by default all inputs should render either horizontally or vertically without me having to call the methods on every input.

To Reproduce
Steps to reproduce the behavior:

  1. Create a vanilla installation of Orchid
  2. The demo forms like e.g. editing a role or a user will already display as vertical form fields.

Expected behavior
Labels being displayed left of input fields

Server (please complete the following information):

  • Platfrom Version: 14.34.0
  • Laravel Version: v11.22.0

Thanks!

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

No branches or pull requests

2 participants