(
+const ButtonContainer = ({ index, children, isNarrowViewport, hasLabel }: ButtonContainer) => (
diff --git a/src/attribute-editor/styles.scss b/src/attribute-editor/styles.scss
index dfb8960620..8b2f097c59 100644
--- a/src/attribute-editor/styles.scss
+++ b/src/attribute-editor/styles.scss
@@ -37,7 +37,7 @@
/* used in test-utils */
}
-.button-container {
+.button-container-haslabel {
// We only support vertical alignment of the remove button for labels with exactly one line.
// The value is calculated as follows:
// padding-top = awsui-form-field-controls: 4px +
@@ -45,6 +45,10 @@
padding-top: calc(#{awsui.$space-xxs} + #{awsui.$font-body-m-line-height});
}
+.button-container-nolabel {
+ padding-top: #{awsui.$space-xxs};
+}
+
.divider {
border-bottom: awsui.$border-divider-section-width solid awsui.$color-border-divider-default;
}