Font-awesome: text-shadow not working (FontAwesome5)

Created on 12 Dec 2017  路  13Comments  路  Source: FortAwesome/Font-Awesome

Most helpful comment

@charlygut That solution was just what I was looking for! I needed a way to ensure I could see a white "compress" icon no matter the background behind the element (dark or light). This worked:

.fa-compress {
    filter: drop-shadow(0 0 1px #777);
}

All 13 comments

Sorry, I learned that FontAwesome 5 inherits only size and color.

You should use the webfont version of FA5 to keep using text-shadow

https://jsfiddle.net/tagliala/tgzouajm/4/

@tagliala v5.0.6 text shadow is not working for the new release any updates on that .

@chocos10 sorry, I cannot confirm

https://jsfiddle.net/tagliala/qq2eLxo1/8/

You should use the webfont version of FA5 to keep using text-shadow

@tagliala should i open a issue ? or is there someone who can confirm this because i cannot use that ?

@chocos10 feel free to open an issue but please make sure to fill out our bug report template

Also, if you are using the SVG Framework, text-shadow will not work and you should use the webfont version of FA5.

Use css3 filter:drop-shadow() for SVG w/ JS

@charlygut That solution was just what I was looking for! I needed a way to ensure I could see a white "compress" icon no matter the background behind the element (dark or light). This worked:

.fa-compress {
    filter: drop-shadow(0 0 1px #777);
}

@aensley this also works for Web Fonts

I post an example: https://codepen.io/charlygut/pen/vRWBdq

Thanks for your help will look into Web Fonts :)

this does not work in IE

@charlygut That solution was just what I was looking for! I needed a way to ensure I could see a white "compress" icon no matter the background behind the element (dark or light). This worked:

.fa-compress {
    filter: drop-shadow(0 0 1px #777);
}

@arajay you're right.
Look at this link and go to "browser support" https://www.w3schools.com/cssref/css3_pr_filter.asp

@arajay Here's a more comprehensive compatibility table: https://caniuse.com/#feat=css-filters

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

daneren2005 picture daneren2005  路  3Comments

ufoczek picture ufoczek  路  3Comments

jakuuub picture jakuuub  路  3Comments

AndersDK12 picture AndersDK12  路  3Comments