[GH-ISSUE #936] Scss variable names #446

Closed
opened 2026-03-03 14:38:26 +03:00 by kerem · 4 comments
Owner

Originally created by @StarkRobin on GitHub (Feb 21, 2022).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/936

I suggest the variable used in _flag-icons-list.scss uses the 'flag-icons' prefix as the rest of the variables:
@if variable-exists(flag-icons-included-countries) { @each $country in $flag-icons-included-countries { @include flag-icon($country); } }

Also add a variable to disable square icons if they are not wanted

Originally created by @StarkRobin on GitHub (Feb 21, 2022). Original GitHub issue: https://github.com/lipis/flag-icons/issues/936 I suggest the variable used in _flag-icons-list.scss uses the 'flag-icons' prefix as the rest of the variables: `@if variable-exists(flag-icons-included-countries) { @each $country in $flag-icons-included-countries { @include flag-icon($country); } }` Also add a variable to disable square icons if they are not wanted
kerem closed this issue 2026-03-03 14:38:27 +03:00
Author
Owner

@StarkRobin commented on GitHub (Feb 21, 2022):

Pull request: https://github.com/lipis/flag-icons/pull/937

<!-- gh-comment-id:1046790789 --> @StarkRobin commented on GitHub (Feb 21, 2022): Pull request: [https://github.com/lipis/flag-icons/pull/937](https://github.com/lipis/flag-icons/pull/937)
Author
Owner

@EdgarKisman commented on GitHub (Apr 14, 2022):

@Kamelkent I'm using flag-icons as a node module. Is it possible to inject the flag-icons-included-countries into the variables.sass file ?

<!-- gh-comment-id:1099370506 --> @EdgarKisman commented on GitHub (Apr 14, 2022): @Kamelkent I'm using flag-icons as a node module. Is it possible to inject the flag-icons-included-countries into the variables.sass file ?
Author
Owner

@EdgarKisman commented on GitHub (Apr 20, 2022):

@Kamelkent I'm using flag-icons as a node module. Is it possible to inject the flag-icons-included-countries into the variables.sass file ?

Ok, i found a solution, i created a injection.scss file and imported it e.g:

$flag-icons-path: '~flag-icons/flags'; $include: 'de', 'nl'; @import '~flag-icons/sass/flag-icons.scss';

please add an example to the readme.

<!-- gh-comment-id:1103737202 --> @EdgarKisman commented on GitHub (Apr 20, 2022): > @Kamelkent I'm using flag-icons as a node module. Is it possible to inject the flag-icons-included-countries into the variables.sass file ? Ok, i found a solution, i created a injection.scss file and imported it e.g: ` $flag-icons-path: '~flag-icons/flags'; $include: 'de', 'nl'; @import '~flag-icons/sass/flag-icons.scss';` please add an example to the readme.
Author
Owner

@NotTsunami commented on GitHub (May 3, 2022):

The linked pull request is merged now, so the original issue should be resolved now.

<!-- gh-comment-id:1116293494 --> @NotTsunami commented on GitHub (May 3, 2022): The linked pull request is merged now, so the original issue should be resolved now.
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#446
No description provided.