Skip to content

Commit c7d3496

Browse files
committed
fix(datetime-button): improve sizing in overlays
1 parent 249ca18 commit c7d3496

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

core/src/css/core.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,3 +334,16 @@ ion-input input::-webkit-date-and-time-value {
334334
--width: fit-content;
335335
--height: fit-content;
336336
}
337+
338+
/**
339+
* The grid variant can scale down when inline.
340+
* When used in a `fit-content` overlay, this causes
341+
* the overlay to shrink when the month/year picker is open.
342+
* Explicitly setting the dimensions lets us have a consistently
343+
* sized grid interface.
344+
*/
345+
.ion-datetime-button-overlay ion-datetime.datetime-grid {
346+
width: 320px;
347+
height: 320px;
348+
min-height: 320px;
349+
}

0 commit comments

Comments
 (0)