Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/components/app/MenuButtons/Publish.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
--internal-upload-percentage-foreground-color: var(--blue-60);
--internal-upload-bar-background-color: var(--grey-40);
--internal-upload-bar-inner-background-color: var(--blue-50);
--internal-warning-indicator-icon: url(../../../../res/img/svg/warning.svg);
}

:root.dark-mode {
Expand All @@ -80,6 +81,7 @@
--internal-upload-percentage-foreground-color: var(--blue-60);
--internal-upload-bar-background-color: var(--grey-40);
--internal-upload-bar-inner-background-color: var(--blue-50);
--internal-warning-indicator-icon: url(../../../../res/img/svg/warning-light.svg);
}
}

Expand Down Expand Up @@ -115,7 +117,11 @@
}

.publishPanelDataChoicesIndicator {
display: inline-block;
width: 16px;
height: 16px;
margin-left: 8px;
background: var(--internal-warning-indicator-icon) center no-repeat;
vertical-align: middle;
}

Expand Down
8 changes: 2 additions & 6 deletions src/components/app/MenuButtons/Publish.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ import explicitConnect, {
type ConnectedProps,
} from 'firefox-profiler/utils/connect';

import WarningImage from 'firefox-profiler-res/img/svg/warning.svg';

import type {
Profile,
CheckedSharingOptions,
Expand Down Expand Up @@ -231,9 +229,8 @@ class PublishPanelImpl extends React.PureComponent<PublishProps, {}> {
id="MenuButtons--publish--renderCheckbox-label-private-browsing-warning-image"
attrs={{ title: true }}
>
<img
<span
className="publishPanelDataChoicesIndicator"
src={WarningImage}
title="This profile contains private browsing data"
/>
</Localized>
Expand All @@ -247,9 +244,8 @@ class PublishPanelImpl extends React.PureComponent<PublishProps, {}> {
id="MenuButtons--publish--renderCheckbox-label-argument-values-warning-image"
attrs={{ title: true }}
>
<img
<span
className="publishPanelDataChoicesIndicator"
src={WarningImage}
title="This profile contains function argument values recorded from the page, which may include personal data"
/>
</Localized>
Expand Down
Loading