Skip to content

Commit

Permalink
Merge pull request #453 from FloEdelmann/class-names
Browse files Browse the repository at this point in the history
Add icon-specific className to React default props
  • Loading branch information
colebemis committed Feb 23, 2021
2 parents f1df71d + 0427cd9 commit ae719f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/octicons_react/script/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const icons = Object.entries(octicons)
}
${name}.defaultProps = {
className: 'octicon',
className: 'octicon octicon-${key}',
size: 16,
verticalAlign: 'text-bottom'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`An icon component matches snapshot 1`] = `
<svg
aria-hidden="true"
class="octicon"
class="octicon octicon-alert"
fill="currentColor"
height="16"
role="img"
Expand Down

0 comments on commit ae719f9

Please sign in to comment.