fix the legacy card style issue (#12428)

* fix the legacy card style issue

* replace the card class
This commit is contained in:
Alan Ren
2020-09-17 19:54:41 -07:00
committed by GitHub
parent 36d78242f7
commit a9f78694ee
3 changed files with 206 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import 'vs/css!./media/card';
import 'vs/css!./media/legacycard';
import {
Component, Input, Inject, ChangeDetectorRef, forwardRef, ElementRef, OnDestroy, ViewChild
@@ -117,7 +117,7 @@ export default class CardComponent extends ComponentWithIconBase<azdata.CardProp
}
public getClass(): string {
let cardClass = this.isListItemCard ? 'model-card-list-item' : 'model-card';
let cardClass = this.isListItemCard ? 'model-card-list-item-legacy' : 'model-card-legacy';
return (this.selectable && this.selected || this._hasFocus) ? `${cardClass} selected` :
`${cardClass} unselected`;
}