Common Issues

Are you stuck? In this section, we will cover the common issues that can occur sometimes, troubleshooting tips, and practical solutions.

Explore the solution to common issues like icon display, alignment, customization, compatibility, and many more.

We continuously update this section to ensure you have the best support whenever you need it.


1. Issues with Icon Colors

You can find issues with the icon colors sometimes.

Possible Causes

  1. Overriding CSS styles or inline styles
  2. SVG icons without proper fill tag.

Solution

  1. For SVG icons, use CSS to adjust colors in fill
  2. Avoid overriding colors using !important attribute.

2. Icons Overlapping with Other Content

Sometimes your icon can overlap other contents

Possible Causes

  1. Conflict in positioning CSS file.

Solution

  1. You can use custom classes to adjust the positioning.
  2. Check the preview so that the icons don’t overlap with others.

3. Icons Not Loading in React Components

You can face a little issue while loading the icons as React components.

Possible Causes

  1. For import path issues or incompatible versions.

Solution

  1. Check if you are using the correct path in your React components.
  2. Ensure that the version of Lineicons is compatible with your React setup.

4. Icons Not Displaying Properly

Sometimes the icons may not display properly on your end:

Possible Causes

  1. Incorrect file path or URL.
  2. Browser caching issues.
  3. Compatibility issues with some CSS frameworks.

Solution

  1. Ensure the file path and URL are correct.
  2. Clear the browser cache and preview the latest changes.
  3. Check out the CSS conflicts and add custom styles.

5. Icons are Not Centered or Misaligned

You can face the icon's misaligned issue as well.

Possible Causes

  1. Missing or incompatible CSS classes
  2. It may face conflicts with CSS from other libraries.

Solution

  1. You can use Flexbox or CSS Grid to align the icons as you need.
  2. Check out the CSS conflicts and resolve them by adding custom styles.