Skip to content

Commit

Permalink
feat: update styles sheet style.css to display badges properly withou…
Browse files Browse the repository at this point in the history
…t relying on global stylesheets used by linkedin

The files styles.css and styles.min.css in the src directory now appropriately style profile badges. They avoid using the global stylesheet by default, which could potentially conflict with existing page styles depending on the content. The default global stylesheet has a size of 307K, whereas style.css is only 63K. This means that styling the badges with style.css results in four times less overhead in additional style declarations.
  • Loading branch information
Ziping Liu committed May 18, 2024
1 parent 82acefa commit e9560e7
Show file tree
Hide file tree
Showing 3 changed files with 1,306 additions and 357 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-linkedinbadge",
"version": "5.16.2025",
"version": "5.18.2024",
"description": "The LinkedIn Badge Rendering React Component is a powerful tool for displaying LinkedIn badges on websites. With customizable options and support for both profile and entity badges, this component offers improved features over LinkedIn's basic implementation. It enhances code organization by separating badge container rendering from dynamic content rendering and efficiently handles asynchronous loading of content from LinkedIn servers. This component also allows for easy management of multiple badges on a page and provides a callback function for tracking badge rendering completion. Make sure to review the licensing information for proper usage.",
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit e9560e7

Please sign in to comment.