@@ -25,11 +25,9 @@ $edit-button-padding-right: calc(#{awsui.$space-xs} + #{awsui.$space-xxs});
25
25
// Cell vertical padding + xxs space that would normally come from the button.
26
26
$success-icon-padding-right : calc (#{$edit-button-padding-right } + #{$icon-width-with-spacing } );
27
27
$interactive-column-padding-inline-end : calc (#{$cell-horizontal-padding } + #{awsui .$space-l } );
28
+ $editing-cell-padding : awsui .$space-xs ;
28
29
$cell-offset : calc (#{awsui .$space-m } + #{awsui .$space-xs } );
29
30
30
- // Ensuring enough space for absolute-positioned focus outlines of focus-able cell content elements.
31
- $cell-negative-space-vertical : 2px ;
32
-
33
31
@mixin cell-focus-outline {
34
32
@include styles .focus-highlight (calc (-1 * #{awsui .$space-scaled-xxs } ));
35
33
@@ -99,20 +97,17 @@ $cell-negative-space-vertical: 2px;
99
97
}
100
98
@mixin cell-padding-block ($padding ) {
101
99
> .body-cell-content {
102
- padding-block : calc (#{$padding } - 1 * #{awsui .$border-divider-list-width } + #{$cell-negative-space-vertical } );
103
- margin-block : calc (-1 * #{$cell-negative-space-vertical } );
100
+ padding-block : calc (#{$padding } - 1 * #{awsui .$border-divider-list-width } );
104
101
}
105
102
}
106
103
@mixin cell-padding-block-start ($padding ) {
107
104
> .body-cell-content {
108
- padding-block-start : calc (#{$padding } - 1 * #{awsui .$border-divider-list-width } + #{$cell-negative-space-vertical } );
109
- margin-block-start : calc (-1 * #{$cell-negative-space-vertical } );
105
+ padding-block-start : calc (#{$padding } - 1 * #{awsui .$border-divider-list-width } );
110
106
}
111
107
}
112
108
@mixin cell-padding-block-end ($padding ) {
113
109
> .body-cell-content {
114
- padding-block-end : calc (#{$padding } - 1 * #{awsui .$border-divider-list-width } + #{$cell-negative-space-vertical } );
115
- margin-block-end : calc (-1 * #{$cell-negative-space-vertical } );
110
+ padding-block-end : calc (#{$padding } - 1 * #{awsui .$border-divider-list-width } );
116
111
}
117
112
}
118
113
@@ -131,6 +126,12 @@ $cell-negative-space-vertical: 2px;
131
126
132
127
& -content {
133
128
box-sizing : border-box ;
129
+ block-size : 100% ;
130
+ align-content : center ;
131
+
132
+ & .body-cell-align-top {
133
+ align-content : baseline ;
134
+ }
134
135
135
136
& :not (.body-cell-wrap ) {
136
137
white-space : nowrap ;
@@ -178,20 +179,10 @@ $cell-negative-space-vertical: 2px;
178
179
& :not (.has-selection ):not (.body-cell-editable ) {
179
180
border-inline-start : none ;
180
181
}
181
-
182
- // Give extra space on the edge to allow slight content overflow.
183
- // That is to prevent focus outline on cell content from being cut out.
184
- > .body-cell-content {
185
- padding-inline-start : awsui .$border-divider-list-width ;
186
- margin-inline-start : calc (-1 * #{awsui .$border-divider-list-width } );
187
- }
188
182
}
189
183
& :first-child:not (.is-visual-refresh ) {
190
184
@include cell-padding-inline-start ($cell-edge-horizontal-padding );
191
185
}
192
- & -align-top {
193
- vertical-align : top ;
194
- }
195
186
& -first-row {
196
187
border-block-start : $border-placeholder ;
197
188
}
@@ -381,19 +372,6 @@ $cell-negative-space-vertical: 2px;
381
372
color : awsui .$color-text-button-normal-active ;
382
373
}
383
374
384
- & -form {
385
- margin-block : calc (-1 * #{awsui .$space-xs } );
386
- margin-inline : calc (-1.5 * #{awsui .$space-xs } );
387
-
388
- .is-visual-refresh.body-cell :first-child .has-striped-rows > & {
389
- margin-inline-start : calc (-1 * #{awsui .$space-xxs } );
390
- }
391
-
392
- .is-visual-refresh.body-cell :first-child:not (.has-striped-rows ) > & {
393
- margin-inline-start : calc (-1 * #{awsui .$space-xxxs } );
394
- }
395
- }
396
-
397
375
& -row {
398
376
display : flex ;
399
377
flex-flow : row nowrap ;
@@ -429,9 +407,9 @@ $cell-negative-space-vertical: 2px;
429
407
}
430
408
431
409
& .body-cell-edit-active {
432
- > .body- cell-content {
433
- overflow : visible ;
434
- }
410
+ @include cell-padding-inline-start ( $editing- cell-padding );
411
+ @include cell-padding-inline-end ( $editing-cell-padding ) ;
412
+ @include cell-padding-block ( $editing-cell-padding );
435
413
}
436
414
437
415
& :not (.body-cell-edit-active ) {
0 commit comments