Skip to content

Commit

Permalink
fix: CPE Icons on Changes Panel not easily visible in Light Theme (#2…
Browse files Browse the repository at this point in the history
…7762) (#1608)

Co-authored-by: Maruf Rasully <[email protected]>
  • Loading branch information
DanyalAslam and marufrasully authored Jan 23, 2024
1 parent 1051911 commit 6985c87
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
16 changes: 16 additions & 0 deletions packages/control-property-editor/src/Workarounds.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@
}
}

// CPE-UIIcon-Changes
.ui-cpe-icon-light-theme {
margin-right: 5px;
background-color: var(--vscode-terminal-ansiBlue);
border-radius: 50%;
height: 16px;
width: 16px;
vertical-align: bottom;
svg {
path,
rect {
fill: var(--vscode-button-foreground);
}
}
}

// Tree
.app-panel-selected-bg {
.ms-GroupHeader-expand:hover {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,7 @@ export function PropertyChange(propertyChangeProps: Readonly<ChangeProps>): Reac
<Stack.Item>
<Text className={styles.text}>{convertCamelCaseToPascalCase(propertyName)}</Text>
<UIIcon iconName={IconName.arrow} className={styles.text} />
{valueIcon && (
<UIIcon
className={styles.valueIcon}
iconName={valueIcon}
style={{
marginRight: 5,
background: 'var(--vscode-terminal-ansiBlue)',
borderRadius: '50%',
height: 16,
width: 16,
verticalAlign: 'bottom'
}}
/>
)}
{valueIcon && <UIIcon className={'ui-cpe-icon-light-theme'} iconName={valueIcon} />}
<Text className={styles.text}>{value}</Text>
</Stack.Item>
{fileName && (
Expand Down

0 comments on commit 6985c87

Please sign in to comment.