Giter VIP home page Giter VIP logo

Comments (5)

michaelbazos avatar michaelbazos commented on June 12, 2024

@TheLordDrake

It's possible to take precedence over the existing inline styles of <i-feather> with the !important keyword:

i-feather {
  height: 50px !important;
  width: 50px !important;
}

Alternatively, since all svg elements of the library have the feather css class you can also do that:

.feather {
  height: 50px;
  width: 50px;
}

The svg element is under i-feather and has no inline width or height on it, so in this case no need for !important.

In addition, svg elements also have a feather-{name} class, so you can target specific icons if you need:

.feather {
  height: 50px;
  width: 50px;
}

.feather-heart {
  color: red;
}

Let me know if this answers your question.

from angular-feather.

TheLordDrake avatar TheLordDrake commented on June 12, 2024

Use of !important would prevent making adjustments to individual icons as needed and should generally be avoided.

I did try the .feather class and had the same issue with it.

I wasn't aware of the feather-{name} classes, so as yet I haven't tried those.

I was able to get it working by wrapping the <i-feather> component in another local component and applying a global style to that component. These seems to be working and does allow local overrides if needed.

from angular-feather.

michaelbazos avatar michaelbazos commented on June 12, 2024

If you can reproduce the issue, using the feather class, I can take a look at it.

from angular-feather.

TheLordDrake avatar TheLordDrake commented on June 12, 2024

I can no longer duplicate it. So either my memory has failed me or there was something with my configuration that has since changed. Either way I think it's safe to say this is a non issue now.

from angular-feather.

michaelbazos avatar michaelbazos commented on June 12, 2024

I tried as well using the feather class, and could not reproduce the issue. Therefore, I also think it's safe to close it now. Thanks for your quick follow-up 👍

from angular-feather.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.