Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

BrandIcon: Update to latest document icons #1090

Merged
merged 5 commits into from
Jan 9, 2018

Conversation

mikewheaton
Copy link
Contributor

@mikewheaton mikewheaton commented Jan 9, 2018

Fixes #1087 and partially addresses #1088 by updating the ms-BrandIcon component to support the latest set of document icons. You can view the previous, updated, and new icons in this CodePen.

Deprecated icons

The onepkg and xls document icons do not exist in the new set. These have been temporarily mapped to the one and xls icons to match the mappings in Fabric React. These classes will be removed in a future release.

New icons

24 new product icons have been added:

  • archive
  • audio
  • code
  • docset
  • email
  • exe
  • folder
  • font
  • genericfile
  • html
  • link
  • listitem
  • model
  • pdf
  • photo
  • rtf
  • sharedfolder
  • spo
  • sysfile
  • txt
  • vector
  • video
  • xml
  • zip

@mikewheaton mikewheaton added this to the 9.4.0 milestone Jan 9, 2018
Copy link
Contributor

@lynamemi lynamemi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loved the codepen!


.ms-BrandIcon--onepkg.ms-BrandIcon--icon16 {
background-image: url(https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/16/one.png);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the protocol/domain part of the URL could be pulled into something like a baseUrl variable to minimize repetition.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll leave it as is, since there shouldn't be any changes needed here before we remove it entirely.

@mikewheaton mikewheaton merged commit 5d4786b into master Jan 9, 2018
@mikewheaton mikewheaton deleted the miwhea/updated-document-icons branch January 9, 2018 20:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants