-
Notifications
You must be signed in to change notification settings - Fork 16
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
Support for mobile layout #1000
Comments
Hi @fongsean, our user experience team loves this idea. They are very keen for the form field labels to appear above the form field inputs at a screen width of 768 pixels. |
Hi @brendan-cheong, I'm working on a set of library APIs to tweak rendering behaviours that SDC doesn't provide extensions for. I've added a
Each (xs, sm, etc) of these values should total to 12 if you want the label and the field on the same line.
By default, screen width above md will have a 1:2 ratio for labels and their fields on the same row. Below md, they will form two rows. Note: the breakpoints are based on the screen width, not the renderer width. It does require more refinement if we want it to be based on the renderer width. These new library APIs are currently in the alpha release of the library, but I imagine there could be breaking changes between different alpha versions (not yet so far), so proceed with caution. |
The renderer doesn't really support viewing on mobile devices at the moment.
Might be a good idea to dynamic adjust form fields to overflow to the next line when a screen width threshold is reached.
Complex items like grids, group tables might take more effort to address.
The text was updated successfully, but these errors were encountered: