From a9b1123beab81d76f794666ecbb7ec505b9a9995 Mon Sep 17 00:00:00 2001 From: "C. Perez" Date: Mon, 17 Aug 2020 15:31:27 -0700 Subject: [PATCH] lowercase filetypeicons (#14569) * Updating to use latest iconset from latest versioned CDN. All filetypes are lowercase. SVGs for 20_1.5x are now available. * Change files --- ...7-13-35-23-caperez-lowercase_filetypeicons.json | 8 ++++++++ .../src/initializeFileTypeIcons.tsx | 14 ++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 change/@uifabric-file-type-icons-2020-08-17-13-35-23-caperez-lowercase_filetypeicons.json diff --git a/change/@uifabric-file-type-icons-2020-08-17-13-35-23-caperez-lowercase_filetypeicons.json b/change/@uifabric-file-type-icons-2020-08-17-13-35-23-caperez-lowercase_filetypeicons.json new file mode 100644 index 0000000000000..47eef2dd4399b --- /dev/null +++ b/change/@uifabric-file-type-icons-2020-08-17-13-35-23-caperez-lowercase_filetypeicons.json @@ -0,0 +1,8 @@ +{ + "type": "patch", + "comment": "Updating to use latest iconset from latest versioned CDN. All filetypes are lowercase. SVGs for 20_1.5x are now available.", + "packageName": "@uifabric/file-type-icons", + "email": "caperez@microsoft.com", + "dependentChangeType": "patch", + "date": "2020-08-17T20:35:23.970Z" +} diff --git a/packages/file-type-icons/src/initializeFileTypeIcons.tsx b/packages/file-type-icons/src/initializeFileTypeIcons.tsx index 3b5e70291fbd8..a74b745249425 100644 --- a/packages/file-type-icons/src/initializeFileTypeIcons.tsx +++ b/packages/file-type-icons/src/initializeFileTypeIcons.tsx @@ -5,7 +5,7 @@ import { FileTypeIconMap } from './FileTypeIconMap'; const PNG_SUFFIX = '_png'; const SVG_SUFFIX = '_svg'; -const DEFAULT_BASE_URL = 'https://spoprod-a.akamaihd.net/files/fabric-cdn-prod_20200708.002/assets/item-types/'; +const DEFAULT_BASE_URL = 'https://spoprod-a.akamaihd.net/files/fabric-cdn-prod_20200817.003/assets/item-types/'; const ICON_SIZES: number[] = [16, 20, 24, 32, 40, 48, 64, 96]; export function initializeFileTypeIcons(baseUrl: string = DEFAULT_BASE_URL, options?: Partial): void { @@ -28,15 +28,13 @@ function _initializeIcons(baseUrl: string, size: number, options?: Partial - ); - fileTypeIcons[type + size + '_1.5x' + SVG_SUFFIX] = ( + ); + fileTypeIcons[type + size + '_1.5x' + SVG_SUFFIX] = ( - ); - } + ); fileTypeIcons[type + size + '_2x' + PNG_SUFFIX] = (