Skip to content

Commit dd299ea

Browse files
authored
refactor: remove grid-template from checkbox and radio-button (#10620)
1 parent f09811a commit dd299ea

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/field-base/src/styles/checkable-base-styles.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@ export const checkable = (part, propName = part) => css`
1111
:host {
1212
align-items: baseline;
1313
column-gap: var(--vaadin-${unsafeCSS(propName)}-gap, var(--vaadin-gap-s));
14+
grid-template: none;
1415
grid-template-columns: auto 1fr;
15-
/*
16-
Using minmax(auto, max-content) works around a Safari 17 issue where placing a checkbox
17-
inside a flex container with flex-direction: column causes the container to unexpectedly
18-
grow to the max available height.
19-
*/
20-
grid-template-rows: minmax(auto, max-content);
16+
grid-template-rows: repeat(auto-fill, minmax(0, max-content));
2117
-webkit-tap-highlight-color: transparent;
2218
--_cursor: var(--vaadin-clickable-cursor);
2319
}
@@ -65,6 +61,7 @@ export const checkable = (part, propName = part) => css`
6561
[part='helper-text'],
6662
[part='error-message'] {
6763
margin-top: var(--_gap-s);
64+
grid-row: auto;
6865
}
6966
7067
/* Baseline vertical alignment */

0 commit comments

Comments
 (0)