diff --git a/front_end/panels/application/AppManifestView.ts b/front_end/panels/application/AppManifestView.ts
index 7c054be8f1..d098c2f805 100644
--- a/front_end/panels/application/AppManifestView.ts
+++ b/front_end/panels/application/AppManifestView.ts
@@ -617,7 +617,13 @@ export class AppManifestView extends UI.Widget.VBox implements SDK.TargetManager
const copyButton = new IconButton.IconButton.IconButton();
copyButton.title = i18nString(UIStrings.copyToClipboard);
copyButton.data = {
- groups: [{iconName: 'copy_icon', iconHeight: '12px', iconWidth: '12px', text: ''}],
+ groups: [{
+ iconName: 'copy_icon',
+ iconHeight: '12px',
+ iconWidth: '12px',
+ text: '',
+ iconColor: 'var(--color-text-primary)',
+ }],
clickHandler: (): void => {
Host.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(recommendedId);
},
diff --git a/front_end/panels/application/components/FrameDetailsView.ts b/front_end/panels/application/components/FrameDetailsView.ts
index 08cb30b705..d2dfad2fc0 100644
--- a/front_end/panels/application/components/FrameDetailsView.ts
+++ b/front_end/panels/application/components/FrameDetailsView.ts
@@ -342,6 +342,7 @@ export class FrameDetailsReportView extends HTMLElement {
{
iconName: 'refresh_12x12_icon',
text: i18nString(UIStrings.refresh),
+ iconColor: 'var(--color-text-primary)',
} as IconButton.IconButton.IconWithTextData,
],
} as IconButton.IconButton.IconButtonData}>
diff --git a/front_end/ui/components/docs/icon_button/basic.ts b/front_end/ui/components/docs/icon_button/basic.ts
index 6a1b68ccc9..082ca68d5b 100644
--- a/front_end/ui/components/docs/icon_button/basic.ts
+++ b/front_end/ui/components/docs/icon_button/basic.ts
@@ -12,7 +12,7 @@ function appendComponent(data: IconButton.IconButton.IconButtonData) {
appendComponent({
clickHandler: (): void => {},
- groups: [{iconName: 'survey_feedback_icon', text: '1 item'}],
+ groups: [{iconName: 'survey_feedback_icon', iconColor: 'var(--color-text-primary)', text: '1 item'}],
});
appendComponent({
diff --git a/front_end/ui/components/icon_button/IconButton.ts b/front_end/ui/components/icon_button/IconButton.ts
index b30c1896b6..58cd5f5cf2 100644
--- a/front_end/ui/components/icon_button/IconButton.ts
+++ b/front_end/ui/components/icon_button/IconButton.ts
@@ -85,7 +85,7 @@ export class IconButton extends HTMLElement {
${filteredGroups.map(counter =>
LitHtml.html`
<${Icon.litTagName} class="status-icon"
- .data=${{iconName: counter.iconName, color: counter.iconColor || 'var(--color-text-primary)', width: counter.iconWidth || '1.5ex', height: counter.iconHeight || '1.5ex'} as IconData}>
+ .data=${{iconName: counter.iconName, color: counter.iconColor, width: counter.iconWidth || '1.5ex', height: counter.iconHeight || '1.5ex'} as IconData}>
${Icon.litTagName}>
${this.#compact ? LitHtml.html`` : LitHtml.nothing}
${counter.text}