Skip to content

Commit 4918ce1

Browse files
committed
Update download icon
1 parent 7470d2c commit 4918ce1

5 files changed

Lines changed: 16 additions & 39 deletions

File tree

packages/component/src/Attachment/Assets/DownloadIcon.tsx

Lines changed: 0 additions & 35 deletions
This file was deleted.

packages/component/src/Attachment/FileContent.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { boolean, number, object, optional, pipe, readonly, string, type InferIn
66

77
import { useStyleToEmotionObject } from '../hooks/internal/styleToEmotionObject';
88
import useStyleSet from '../hooks/useStyleSet';
9-
import DownloadIcon from './Assets/DownloadIcon';
9+
import { ComponentIcon } from '../Icon';
1010

1111
const { useByteFormatter, useDirection, useLocalizer } = hooks;
1212

@@ -61,12 +61,13 @@ const FileContentBadge = (props: FileContentBadgeProps) => {
6161
{!!localizedSize && <div className="webchat__fileContent__size">{localizedSize}</div>}
6262
</div>
6363
{downloadIcon && (
64-
<DownloadIcon
64+
<ComponentIcon
65+
appearance="text"
6566
className={classNames(
6667
'webchat__fileContent__downloadIcon',
6768
direction === 'rtl' && 'webchat__fileContent__downloadIcon--rtl'
6869
)}
69-
size={1.5}
70+
icon="download"
7071
/>
7172
)}
7273
</React.Fragment>

packages/component/src/Icon/ComponentIcon.module.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/component/src/Styles/StyleSet/FileContent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export default function createFileContentStyle({
2727
},
2828

2929
'& .webchat__fileContent__downloadIcon': {
30-
fill: accent,
30+
color: accent,
31+
fontSize: '33px',
3132
padding: paddingRegular,
3233

3334
'&:not(.webchat__fileContent__downloadIcon--rtl)': {

packages/fluent-theme/src/components/activity/ActivityDecorator.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,12 @@
220220
}
221221
}
222222

223+
:global(.webchat-fluent)
224+
.activity-decorator
225+
:global(.webchat__stacked-layout .webchat__bubble .webchat__fileContent__downloadIcon) {
226+
color: var(--webchat-colorBrandForegroundLink);
227+
}
228+
223229
/* Markdown links and citation links */
224230
:global(.webchat-fluent)
225231
.activity-decorator

0 commit comments

Comments
 (0)