Skip to content

Commit 7ea3c94

Browse files
committed
Update fire icon in Activity details
1 parent c8ad930 commit 7ea3c94

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

special-pages/pages/new-tab/app/activity/components/ActivityItem.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { FaviconWithState } from '../../../../../shared/components/FaviconWithSt
77
import { ACTION_ADD_FAVORITE, ACTION_REMOVE, ACTION_REMOVE_FAVORITE } from '../constants.js';
88
import { Star, StarFilled } from '../../components/icons/Star.js';
99
import { Fire } from '../../components/icons/Fire.js';
10-
import { Cross } from '../../components/Icons.js';
10+
import { Cross, FireIcon } from '../../components/Icons.js';
1111
import { useContext } from 'preact/hooks';
1212
import { memo } from 'preact/compat';
1313
import { useComputed } from '@preact/signals';
@@ -139,7 +139,7 @@ function Controls({ canBurn, url, title }) {
139139
value={url}
140140
type="button"
141141
>
142-
{canBurn ? <Fire /> : <Cross />}
142+
{canBurn ? <FireIcon /> : <Cross />}
143143
</button>
144144
</div>
145145
);

special-pages/pages/new-tab/app/components/Icons.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,3 +671,15 @@ export function Check(props) {
671671
</svg>
672672
);
673673
}
674+
675+
/**
676+
* From https://dub.duckduckgo.com/duckduckgo/Icons/blob/Main/Glyphs/16px/Fire-Solid-16.svg
677+
* @param {import('preact').JSX.SVGAttributes<SVGSVGElement>} props
678+
*/
679+
export function FireIcon(props) {
680+
return (
681+
<svg fill="none" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class={styles.fireIcon} {...props}>
682+
<path fill="currentColor" d="M6.498.03a.63.63 0 0 1 .536.075l.074.05c.756.533 1.148 1.26 1.394 1.983.126.37.218.75.299 1.107.083.368.152.703.24 1.03l.008.026c.025.074.096.245.235.398.142.157.356.301.716.301.34 0 .537-.111.66-.222a1.05 1.05 0 0 0 .26-.385l.012-.036c.03-.094.063-.263.101-.478.018-.1.04-.221.063-.312.009-.035.03-.123.075-.208.013-.026.082-.166.242-.263a.63.63 0 0 1 .727.047l.028.023.049.046C12.6 3.575 15 5.996 15 10c0 2.516-1.796 4.569-4.16 5.477a.625.625 0 0 1-.698-.99c.395-.459.608-1.08.608-1.768 0-.565-.342-1.223-.981-1.996-.513-.62-1.139-1.225-1.77-1.846-.637.617-1.256 1.193-1.771 1.803-.63.747-.978 1.407-.978 2.039 0 .688.213 1.31.608 1.767a.625.625 0 0 1-.673 1l-.025-.009C2.796 14.57 1 12.516 1 10c0-2.22.957-3.611 2.039-4.941C4.119 3.73 5.305 2.473 6.104.4l.014-.033a.63.63 0 0 1 .38-.338Z"/>
683+
</svg>
684+
);
685+
}

special-pages/pages/new-tab/app/components/Icons.module.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,8 @@
2828
fill: white;
2929
fill-opacity: 0.24;
3030
}
31+
32+
/* FireIcon styles */
33+
.fireIcon {
34+
color: currentColor;
35+
}

special-pages/pages/new-tab/app/components/Tooltip/Tooltip.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
white-space: normal;
1919
width: 236px;
2020
z-index: 1000;
21-
animation: tooltipFadeIn 0.7s ease-out;
21+
animation: tooltipFadeIn 300ms ease;
2222

2323
& span {
2424
display: block;

0 commit comments

Comments
 (0)