@@ -25,11 +25,10 @@ $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-inline : awsui .$space-xxs ;
29
+ $editing-cell-padding-block : awsui .$space-scaled-xxxs ;
28
30
$cell-offset : calc (#{awsui .$space-m } + #{awsui .$space-xs } );
29
31
30
- // Ensuring enough space for absolute-positioned focus outlines of focus-able cell content elements.
31
- $cell-negative-space-vertical : 2px ;
32
-
33
32
@mixin cell-focus-outline {
34
33
@include styles .focus-highlight (calc (-1 * #{awsui .$space-scaled-xxs } ));
35
34
@@ -99,20 +98,17 @@ $cell-negative-space-vertical: 2px;
99
98
}
100
99
@mixin cell-padding-block ($padding ) {
101
100
> .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 } );
101
+ padding-block : calc (#{$padding } - 1 * #{awsui .$border-divider-list-width } );
104
102
}
105
103
}
106
104
@mixin cell-padding-block-start ($padding ) {
107
105
> .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 } );
106
+ padding-block-start : calc (#{$padding } - 1 * #{awsui .$border-divider-list-width } );
110
107
}
111
108
}
112
109
@mixin cell-padding-block-end ($padding ) {
113
110
> .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 } );
111
+ padding-block-end : calc (#{$padding } - 1 * #{awsui .$border-divider-list-width } );
116
112
}
117
113
}
118
114
@@ -131,6 +127,12 @@ $cell-negative-space-vertical: 2px;
131
127
132
128
& -content {
133
129
box-sizing : border-box ;
130
+ block-size : 100% ;
131
+ align-content : center ;
132
+
133
+ & .body-cell-align-top {
134
+ align-content : baseline ;
135
+ }
134
136
135
137
& :not (.body-cell-wrap ) {
136
138
white-space : nowrap ;
@@ -178,20 +180,10 @@ $cell-negative-space-vertical: 2px;
178
180
& :not (.has-selection ):not (.body-cell-editable ) {
179
181
border-inline-start : none ;
180
182
}
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
183
}
189
184
& :first-child:not (.is-visual-refresh ) {
190
185
@include cell-padding-inline-start ($cell-edge-horizontal-padding );
191
186
}
192
- & -align-top {
193
- vertical-align : top ;
194
- }
195
187
& -first-row {
196
188
border-block-start : $border-placeholder ;
197
189
}
@@ -381,19 +373,6 @@ $cell-negative-space-vertical: 2px;
381
373
color : awsui .$color-text-button-normal-active ;
382
374
}
383
375
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
376
& -row {
398
377
display : flex ;
399
378
flex-flow : row nowrap ;
@@ -429,9 +408,9 @@ $cell-negative-space-vertical: 2px;
429
408
}
430
409
431
410
& .body-cell-edit-active {
432
- > .body- cell-content {
433
- overflow : visible ;
434
- }
411
+ @include cell-padding-inline-start ( $editing- cell-padding-inline );
412
+ @include cell-padding-inline-end ( $editing-cell-padding-inline ) ;
413
+ @include cell-padding-block ( $editing-cell-padding-block );
435
414
}
436
415
437
416
& :not (.body-cell-edit-active ) {
0 commit comments