General Guidelines
Field Spacing – Element widths
- For form-like applications (like HSA, below) where users enter a series of data and then hit submit/save, keep a consistent vertical line between the label fields and the input/value fields, or “left edge”.
- It is often desirable to have the “right edge” also line up consistently but this more of a design choice and may vary from project to project, or within different sections of the screen, without jeopardizing the overall consistency of SAP web applications. This is mostly desirable for display information/ready only fields. Editable fields that have a fixed length (e.g. 2 character state code) should be left at their original length so users aren’t confused about how much data they can input on a given field.
- Consistent spacing can be achieved by creating several global variables, e.g. “Label-width”, “Field-width”, and “Table-width”, then assigning those variables to the “width” property of the Cells and UI elements in the first row of page / page section.
- When setting the value of those global width variables, it is preferable to use relative field widths, e.g. “em” or “ex”. Pixel counts can be used also but may cause problem in cases of extreme zooming.
- SAP's SDN recommends the use of “ex” over “em”… need to validate.
- Use Matrix layout type over Grid layout alternative.
Hourly Student Appointment (HSA) Example:
...
For form layouts applications like Hourly Student Appointment, fixed width values works best.
...