fluentui
fluentui copied to clipboard
[Bug]: .mhtml file type icon falls back to genericfile instead of using HTML
Library
React / v8 (@fluentui/react)
System Info
System:
OS: Windows 10 10.0.22621
CPU: (8) x64 Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
Memory: 10.17 GB / 31.60 GB
Browsers:
Edge: Spartan (44.22621.1702.0), Chromium (113.0.1774.42), ChromiumDev (115.0.1843.0)
Internet Explorer: 11.0.22621.1
Are you reporting Accessibility issue?
no
Reproduction
https://codesandbox.io/s/optimistic-meninsky-l2gknx
Bug Description
Actual Behavior
When using File Type icons via getFileTypeIconProps from @fluentui/react-file-type-icons, mhtml files are shown with generic icon which is different from mht files that use HTML icon.
Expected Behavior
Both mht and mhtml extensions are mapped to HTML file type icon.
Logs
No response
Requested priority
Low
Products/sites affected
Enterprise search in SharePoint and office.com
Are you willing to submit a PR to fix?
yes
Validations
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] The provided reproduction is a minimal reproducible example of the bug.