Skip to content

Releases: primer/octicons

v10.0.0

11 Jun 00:25
dbf02d1
Compare
Choose a tag to compare

All packages

  • We've given Octicons a new look ✨ Some icons have new names and some icons haven't been redesigned yet. The following table documents those changes. If you're using an octicon in v9.x that doesn't have an equivelent in v10.0 yet, let us know by opening an issue.
v9.x v10.0 Notes
arrow-small-down arrow-down
arrow-small-left arrow-left
arrow-small-right arrow-right
arrow-small-up arrow-up
circuit-board cpu
cloud-download download
cloud-upload upload
dashboard meter
dependent package-dependents
file-pdf file
file-symlink-directory file-submodule
gist-secret lock
gist code-square
github-action play
heart-outline heart
internal-repo repo
jersey people
keyboard Request this icon
line-arrow-down arrow-down
line-arrow-left arrow-left
line-arrow-right arrow-right
line-arrow-up arrow-up
mail-read mail
no-newline no-entry
paintcan paintbrush
plus-small plus
primitive-dot-stroke dot
primitive-dot dot-fill
primitive-square square-fill
radio-tower broadcast
repo-force-push repo-push
repo-template-private Request this icon
request-changes diff
saved bookmark
text-size heading or typography
unsaved bookmark-slash
watch hourglass
workflow-all Request this icon
  • We designed a set of 24px icons—as well as 16px icons—to accommodate interfaces that need larger icons. All package implementations now choose which SVG to render based on the size passed in.

React (@primer/octicons-react)

  • Icon components (e.g. AlertIcon, ArrowRightIcon, etc.) now accept size, ariaLabel, verticalAlign, and className props and can be used on their own. No need to pass them to the Octicon component.

    <AlertIcon size={24} />
  • Icon components will now choose the best SVG icon to render based on the size passed in.

  • The Octicon component is deprecated. Use icon components on their own instead:

    - <Octicon icon={AlertIcon} />
    + <AlertIcon />

BREAKING CHANGES 💥

  • All icon component names now include Icon at the end (e.g. AlertAlertIcon).

  • In order to enable tree-shaking, we removed the iconsByName and getIconByName exports.

  • Octicon no longer accepts width or height props. Use the size prop instead. In cases where the width and height of an icon are not equal (e.g. logos), the height will be set to the value of the size prop and the width will be scaled proportionally.

  • We renamed the ariaLabel prop to aria-label to be consistent with React: https://reactjs.org/docs/accessibility.html#wai-aria

    - <AlertIcon ariaLabel="...
Read more

v9.6.0

01 Apr 18:45
Compare
Choose a tag to compare

Features

  • New icon north-star #380

v9.5.0

01 Apr 18:45
Compare
Choose a tag to compare

Features

  • New icon internal-repo #375

v9.4.0

29 Jan 21:39
ded0acf
Compare
Choose a tag to compare

Features

  • New icons heart-outline infinity line-arrow-up line-arrow-down line-arrow-right line-arrow-left #365

Chores

  • Contributing docs updates and issue template updates #367

Bugs

  • Update heart glyphs removing extra points #365

v9.3.1

25 Nov 17:36
1191695
Compare
Choose a tag to compare

Bugfix

  • The workflow icon's viewport was incorrect causing the icon to be clipped.

v9.3.0

20 Nov 20:45
9b73fcf
Compare
Choose a tag to compare

🚀 New Features

v9.2.0

15 Oct 03:22
778c17b
Compare
Choose a tag to compare

🚀 New features

🧽 Chores

🐛 Bugs

  • Octicons react isn't including className #271 @pocke

v9.1.1

05 Jul 16:19
641e0c0
Compare
Choose a tag to compare

9.1.1

🐛 Bug Fix

v9.1.0

18 Jun 18:41
030a66f
Compare
Choose a tag to compare

🚀 New features

v9.0.0

06 Jun 21:55
1fa6a7a
Compare
Choose a tag to compare

💥 Breaking changes

  • Rename octicons to @primer/octicons #311
  • Rename @githubprimer/octicons-react to @primer/octicons-react #311

🚀 New features