-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit individual feature importance selection to up to 5 (#1305)
* update feature importance string * limit selection to up to 5 * add group count * remove message bar, show info icon instead * update e2e locator * fix E2E failure on feature importance * add ariaLabel for expand collapse button * add renderOnNewLayer props
1 parent
832f26a
commit 6915216
Showing
4 changed files
with
135 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...sment/src/lib/ModelAssessmentDashboard/Controls/IndividualFeatureImportanceView.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
import { | ||
IStyle, | ||
mergeStyleSets, | ||
IProcessedStyleSet, | ||
getTheme | ||
} from "office-ui-fabric-react"; | ||
|
||
export interface IFeatureImportanceStyles { | ||
chevronButton: IStyle; | ||
header: IStyle; | ||
headerCount: IStyle; | ||
headerTitle: IStyle; | ||
selectionCounter: IStyle; | ||
} | ||
|
||
export const individualFeatureImportanceViewStyles: () => IProcessedStyleSet<IFeatureImportanceStyles> = | ||
() => { | ||
const theme = getTheme(); | ||
return mergeStyleSets({ | ||
chevronButton: { | ||
marginLeft: 48, | ||
paddingTop: 6, | ||
width: 36 | ||
}, | ||
header: { | ||
margin: `8px 0`, | ||
padding: 8, | ||
// Overlay the sizer bars | ||
position: "relative", | ||
zIndex: 100 | ||
}, | ||
headerCount: [ | ||
"headerCount", | ||
theme.fonts.medium, | ||
{ | ||
paddingTop: 4 | ||
} | ||
], | ||
headerTitle: [ | ||
theme.fonts.medium, | ||
{ | ||
paddingTop: 4 | ||
} | ||
], | ||
selectionCounter: { | ||
paddingTop: 12 | ||
} | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters