diff --git a/libs/cde-visualization/src/lib/components/cell-types/cell-types.component.html b/libs/cde-visualization/src/lib/components/cell-types/cell-types.component.html index 7c2335eb4..cdc6b62e1 100644 --- a/libs/cde-visualization/src/lib/components/cell-types/cell-types.component.html +++ b/libs/cde-visualization/src/lib/components/cell-types/cell-types.component.html @@ -1,142 +1,150 @@ - - Cell Types - - - - - - - - code - Embed App - - - - {{ infoToolTipDescription }} - - - - - - - - -
- {{ selection().length }} - Total Cell Types -
-
- {{ totalCellCount() | number }} - Total Cells -
-@if (!hideCellLinkData()) { - + + diff --git a/libs/cde-visualization/src/lib/components/cell-types/cell-types.component.scss b/libs/cde-visualization/src/lib/components/cell-types/cell-types.component.scss index ff2e63b1f..448a062f4 100644 --- a/libs/cde-visualization/src/lib/components/cell-types/cell-types.component.scss +++ b/libs/cde-visualization/src/lib/components/cell-types/cell-types.component.scss @@ -20,15 +20,6 @@ $blue-theme: mat.m2-define-light-theme( :host { @include mat.button-color($blue-theme); - - display: grid; - grid: - 'cell-types . download' - 'total-cell-types total-cells total-cell-links' - 'table table table' 1fr - / auto 1fr auto; - align-items: start; - row-gap: 0.75rem; overflow: hidden; padding: 0.75rem 1rem; border-width: 0 2px 0px 0px; @@ -48,34 +39,30 @@ $blue-theme: mat.m2-define-light-theme( --mat-table-header-container-height: 2rem; --mat-menu-item-label-text-color: var(--sys-primary); - &:not(:has(.total-cell-links)) { - grid: - 'cell-types . download' - 'total-cell-types . total-cells' - 'table table table' 1fr - / auto 1fr auto; - } + ::ng-deep { + hra-expansion-panel { + .header { + margin-bottom: 0.25rem; - span.cell-types-label { - font: var(--sys-label-medium); - letter-spacing: var(--sys-label-medium-tracking); - grid-area: cell-types; - display: flex; - align-items: center; - gap: 0.25rem; - } + .title { + font: var(--sys-label-medium); + } + } - button.download-csv { - --mdc-filled-button-label-text-color: #{button-text-color}; - grid-area: download; - padding: 0.3438rem 0.5rem; - - .mat-icon { - margin-left: unset; - margin-right: 0.125rem; - font-size: 1.25rem; - height: 1.25rem; - width: 1.25rem; + .expansion-body { + display: grid; + grid: + 'total-cell-types total-cells total-cell-links' + 'table table table' 1fr + / auto 1fr auto; + + &:not(:has(.total-cell-links)) { + grid: + 'total-cell-types . total-cells' + 'table table table' 1fr + / auto 1fr auto; + } + } } } @@ -84,6 +71,7 @@ $blue-theme: mat.m2-define-light-theme( .total-cell-links { font: var(--sys-label-small); letter-spacing: var(--sys-label-medium-tracking); + margin: 0.25rem 0; span { display: block; @@ -92,7 +80,6 @@ $blue-theme: mat.m2-define-light-theme( } } - .mat-caption, .total-ct-label { grid-area: total-cell-types; } @@ -229,7 +216,7 @@ $blue-theme: mat.m2-define-light-theme( ::ng-deep { div.mat-mdc-menu-panel { - max-width: 308px; + max-width: 19.25rem; &.info-sub-menu .mat-mdc-menu-content { padding: 1rem 1rem; } diff --git a/libs/cde-visualization/src/lib/components/cell-types/cell-types.component.ts b/libs/cde-visualization/src/lib/components/cell-types/cell-types.component.ts index 9e4cc6c54..21cd65014 100644 --- a/libs/cde-visualization/src/lib/components/cell-types/cell-types.component.ts +++ b/libs/cde-visualization/src/lib/components/cell-types/cell-types.component.ts @@ -33,6 +33,11 @@ import { CellTypeEntry } from '../../models/cell-type'; import { TOOLTIP_POSITION_RIGHT_SIDE } from '../../shared/tooltip-position'; import { ColorPickerLabelComponent } from '../color-picker-label/color-picker-label.component'; import { MicroTooltipDirective } from '@hra-ui/design-system/micro-tooltip'; +import { + ExpansionPanelActionsComponent, + ExpansionPanelComponent, + ExpansionPanelHeaderContentComponent, +} from '@hra-ui/design-system/expansion-panel'; /** * Cell Type Component */ @@ -56,6 +61,9 @@ import { MicroTooltipDirective } from '@hra-ui/design-system/micro-tooltip'; TooltipCardComponent, MatSnackBarModule, MicroTooltipDirective, + ExpansionPanelComponent, + ExpansionPanelActionsComponent, + ExpansionPanelHeaderContentComponent, ], templateUrl: './cell-types.component.html', styleUrl: './cell-types.component.scss',