Skip to content

Commit

Permalink
Fix the icon name in Spectrum
Browse files Browse the repository at this point in the history
switcherIconDark does not actually exist. Instead,
switcherIcon is the one that needs to be used.

Fixed: chromium:1179638
Change-Id: I130e2ca8d03e5efbc4cbbd49a6c719ef6dd1e1d7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2703254
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
  • Loading branch information
OrKoN authored and Commit Bot committed Feb 18, 2021
1 parent d3cdf74 commit 8da5e50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions front_end/color_picker/Spectrum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,7 @@ export class Spectrum extends UI.Widget.VBox {

function appendSwitcherIcon(parentElement: Element): void {
const switcherIcon = new WebComponents.Icon.Icon();
switcherIcon
.data = {iconName: 'switcherIconDark', color: 'var(--color-text-primary)', width: '16px', height: '16px'};
switcherIcon.data = {iconName: 'switcherIcon', color: 'var(--color-text-primary)', width: '16px', height: '16px'};
parentElement.appendChild(switcherIcon);
}
}
Expand Down

0 comments on commit 8da5e50

Please sign in to comment.