diff --git a/CHANGELOG.md b/CHANGELOG.md index c2e5f34c2..25a8492b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -284,7 +284,7 @@ ### 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](https://github.com/primer/octicons/issues/new?assignees=&labels=icon+request&template=icon-request.md&title=%5BIcon+request%5D). +- 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 equivalent in v10.0 yet, let us know by [opening an issue](https://github.com/primer/octicons/issues/new?assignees=&labels=icon+request&template=icon-request.md&title=%5BIcon+request%5D). | v9.x | v10.0 | Notes | | ------------------------ | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b1b0d6df8..b78d1cd73 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -103,7 +103,7 @@ When creating the changeset always commit into the working branch (pull request When a pull request is approved merge it into the `main` branch. The changeset action will then create a Release pull request that includes this new pull request. -Once maintainers have agreed and are satisifed with the release. Merge the Release pull request. Changesets will then publish a new GitHub release to the repository with the changelog and new version number. A second action will be triggered by this release and publish the new versions to npm and rubygems. +Once maintainers have agreed and are satisfied with the release. Merge the Release pull request. Changesets will then publish a new GitHub release to the repository with the changelog and new version number. A second action will be triggered by this release and publish the new versions to npm and rubygems. 🎉 Congratulations! The new release has been published. diff --git a/README.md b/README.md index b6cb23c3b..e2012c5fc 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ The octicons node.js library is the main JavaScript library. With [a JavaScript | Package | Version | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------- | -| **[@primer/octicons](/lib/octicons_node)**
Node.js package with Javascript API | [![npm version](https://img.shields.io/npm/v/@primer/octicons.svg)](https://www.npmjs.org/package/@primer/octicons) | +| **[@primer/octicons](/lib/octicons_node)**
Node.js package with JavaScript API | [![npm version](https://img.shields.io/npm/v/@primer/octicons.svg)](https://www.npmjs.org/package/@primer/octicons) | | **[@primer/octicons-react](/lib/octicons_react)**
React Octicons components | [![npm version](https://img.shields.io/npm/v/@primer/octicons-react.svg)](https://www.npmjs.org/package/@primer/octicons-react) | | **[@primer/styled-octicons](/lib/octicons_styled)**
React Octicons components with Styled System props | [![npm version](https://img.shields.io/npm/v/@primer/styled-octicons.svg)](https://www.npmjs.org/package/@primer/styled-octicons) | diff --git a/docs/src/components/icon-viewer.js b/docs/src/components/icon-viewer.js index e1a8b5f4a..c73b82d08 100644 --- a/docs/src/components/icon-viewer.js +++ b/docs/src/components/icon-viewer.js @@ -65,10 +65,10 @@ export default function IconViewer({children}) { function gridGradient(angle, size, color) { // WebKit browsers do not support the "transparent" keyword in gradients. // As a workaround, we convert `color` to rgba with an alpha value of 0. - const tranparent = rgba(color, 0) - return `linear-gradient(${angle}deg, ${tranparent}, ${tranparent} ${Math.floor( + const transparent = rgba(color, 0) + return `linear-gradient(${angle}deg, ${transparent}, ${transparent} ${Math.floor( size / 2 - )}px, ${color}, ${tranparent} ${Math.floor(size / 2) + 1}px)` + )}px, ${color}, ${transparent} ${Math.floor(size / 2) + 1}px)` } function getGridSize(zoom) { diff --git a/keywords.json b/keywords.json index cff3e4de3..10be68a7d 100644 --- a/keywords.json +++ b/keywords.json @@ -90,7 +90,7 @@ "git-pull-request": ["review"], "github-action": ["board", "workflow", "action", "automation"], "globe": ["world", "earth", "planet"], - "grabber": ["mover", "drap", "drop", "sort"], + "grabber": ["mover", "drag", "drop", "sort"], "graph": ["trend", "stats", "statistics"], "heart": ["love", "beat"], "heart-outline": ["love", "beat"], diff --git a/lib/octicons_jekyll/lib/jekyll-octicons.rb b/lib/octicons_jekyll/lib/jekyll-octicons.rb index 7a306dba2..55255cc6e 100644 --- a/lib/octicons_jekyll/lib/jekyll-octicons.rb +++ b/lib/octicons_jekyll/lib/jekyll-octicons.rb @@ -10,7 +10,7 @@ class Octicons < Liquid::Tag # Syntax for the octicon symbol Syntax = /\A(#{Liquid::VariableSignature}+)/ - # For interpoaltion, look for liquid variables + # For interpolation, look for liquid variables Variable = /\{\{\s*([\w]+\.?[\w]*)\s*\}\}/i # Copied from Liquid::TagAttributes to allow dashes in tag names: @@ -23,7 +23,7 @@ def initialize(tag_name, markup, options) super @markup = markup - # If there's interpoaltion going on, we need to do this in render + # If there's interpolation going on, we need to do this in render prepare(markup) unless match = markup.match(Variable) end diff --git a/lib/octicons_jekyll/test/octicon_tag_test.rb b/lib/octicons_jekyll/test/octicon_tag_test.rb index 643bfffc1..8ee217bd4 100644 --- a/lib/octicons_jekyll/test/octicon_tag_test.rb +++ b/lib/octicons_jekyll/test/octicon_tag_test.rb @@ -9,7 +9,7 @@ assert_match /aria-label="hi"/, output end - it "parses interpoaltion of variables" do + it "parses interpolation of variables" do template = render("{% assign symbol = \"mark-github\" %}{% octicon {{ symbol }} %}") assert_match / { // Instead of exiting immediately, we set exitCode to 1 and continue // iterating through the rest of the SVGs. This allows us to identify all // the SVGs that have errors, not just the first one. An exit code of 1 - // indicates that an error occured. + // indicates that an error occurred. // Reference: https://nodejs.org/api/process.html#process_exit_codes exitCode = 1 return null