[GH-ISSUE #793] Doesnt work for me #398

Closed
opened 2026-03-03 14:38:07 +03:00 by kerem · 3 comments
Owner

Originally created by @ivanradojevic-web-dev on GitHub (Jan 21, 2021).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/793

I installed via NPM and add <span class="flag-icon flag-icon-gr"></span> from the example. There is no flag!
"flag-icon-css": "^3.5.0",

Originally created by @ivanradojevic-web-dev on GitHub (Jan 21, 2021). Original GitHub issue: https://github.com/lipis/flag-icons/issues/793 I installed via NPM and add ```<span class="flag-icon flag-icon-gr"></span>``` from the example. There is no flag! "flag-icon-css": "^3.5.0",
kerem closed this issue 2026-03-03 14:38:07 +03:00
Author
Owner

@toddpadwick commented on GitHub (Jan 28, 2021):

Same here.
I installed via npm. I also added @import "~flag-icon-css/sass/flag-icon"; to my main.scss file. and I then added an icon <span class="flag-icon flag-icon-gb"></span>

I can see the css is loading as its added the before element with content value. but there is no flag loaded.

<!-- gh-comment-id:769177660 --> @toddpadwick commented on GitHub (Jan 28, 2021): Same here. I installed via npm. I also added `@import "~flag-icon-css/sass/flag-icon";` to my main.scss file. and I then added an icon `<span class="flag-icon flag-icon-gb"></span>` I can see the css is loading as its added the before element with content value. but there is no flag loaded.
Author
Owner

@nijatmursali commented on GitHub (Jan 28, 2021):

It does not work in my case as well.

<!-- gh-comment-id:769415043 --> @nijatmursali commented on GitHub (Jan 28, 2021): It does not work in my case as well.
Author
Owner

@trin94 commented on GitHub (Feb 3, 2021):

I am using a Electron/Angular combo and I had to include the .css file in the angular.json file:

"architect": {
        "build": {
          "options": {
            "styles": [
              "./node_modules/flag-icon-css/css/flag-icon.min.css",
            ],
          },
         }
<!-- gh-comment-id:772436332 --> @trin94 commented on GitHub (Feb 3, 2021): I am using a Electron/Angular combo and I had to include the `.css` file in the `angular.json` file: ```json "architect": { "build": { "options": { "styles": [ "./node_modules/flag-icon-css/css/flag-icon.min.css", ], }, } ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flag-icons#398
No description provided.