-
Notifications
You must be signed in to change notification settings - Fork 478
Description
Describe the issue
Current Behavior
When a grid with inputs is viewed on a mobile device, the vertical spacing appears too wide and does not match with the same display of the non-grid version of the inputs.
Expected Behavior
Whether inputs are in a grid or not should not affect their vertical spacing on mobile devices.
Reproduction URL
- Inputs inside of grid (view it on a mobile width): https://4mrnhq.csb.app/#:~:text=Range%20slider-,Valid,-Invalid
- Inputs not inside of grid (view it on a mobile width): https://4mrnhq.csb.app/#:~:text=Search-,Text,-Curabitur%20consequat%20lacus
Images
Potential solution
The issue appears to be that grid-row-gap is applied on mobile widths to grids. Here's a potential solution that is working for me when I test it:
.grid {
grid-row-gap: 0;
}
@media (min-width: 768px) {
.grid {
grid-row-gap: var(--pico-grid-row-gap);
}
}nailarch and Brian-Pob
Metadata
Metadata
Assignees
Labels
No labels