class="form-item">
<h1
class="cds--type-heading-compact-01"
- i18n>Add host manually</h1>
+ i18n>Add hosts</h1>
<label class="cds--label"
for="hostname">
<span i18n>Host name</span>
i18n>Added hosts ({{addedHostsLength}})</h1>
<p
i18n
- class="cds--type-body-01 cd-nvmeof-subsystem-step-two-added-hosts-text">No hosts added yet. Add hosts manually or upload a CSV file.</p>
+ class="cds--type-body-01 cd-nvmeof-subsystem-step-two-added-hosts-text">No hosts added yet.</p>
} @else {
<cds-contained-list
label="Added hosts ({{addedHostsLength}})"
// WIDE TEARSHEET
-// No css variable to apply css to modal div hence using css ngdeep
+// No css variable to apply css to modal div.
// This is needed to set the width of tearsheet as per carbon standards.
-:host ::ng-deep .cds--modal-container.cds--modal-container--lg {
+.cds--modal-container.cds--modal-container--lg {
position: fixed;
// 88px from top
flex-direction: column;
}
-:host ::ng-deep .cds--modal-container.cds--modal-container--sm {
+// Global Carbon override sets .cds--modal-scroll-content to max-height: 70vh.
+// For tearsheets this causes content area to shrink and footer to float up.
+.cds--modal-container.cds--modal-container--lg .cds--modal-scroll-content {
+ max-height: none;
+ height: 100%;
+ flex: 1 1 auto;
+ min-height: 0;
+}
+
+.cds--modal-container.cds--modal-container--sm {
inset-block-start: 88px;
block-size: 50vh;
max-block-size: 50vh;
}
}
+// In steps without right influencer (e.g. Subsystem details / Authentication),
+// make content fill the available modal height so footer stays pinned.
+.tearsheet-main > .tearsheet-content {
+ flex: 1 1 auto;
+ min-height: 0;
+ max-block-size: none;
+}
+
//FOOTER
.tearsheet-footer {
border-top: 1px solid var(--cds-border-subtle);
DestroyRef,
OnDestroy,
ChangeDetectionStrategy,
- TemplateRef
+ TemplateRef,
+ ViewEncapsulation
} from '@angular/core';
import { FormBuilder } from '@angular/forms';
import { Step } from 'carbon-components-angular';
standalone: false,
templateUrl: './tearsheet.component.html',
styleUrls: ['./tearsheet.component.scss'],
- changeDetection: ChangeDetectionStrategy.OnPush
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ encapsulation: ViewEncapsulation.None
})
export class TearsheetComponent implements OnInit, AfterViewInit, OnDestroy {
@Input() title!: string;