mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 01:15:55 +03:00
[PR #1356] [MERGED] Migrate SASS imports to @use-based code #1363
Labels
No labels
3rd-party
3rd-party
bug
code
documentation
enhancement
fixed-in-master
flag-request
help needed
missing-flag
missing-flag
pull-request
wrong-flag
wrong-flag
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flag-icons#1363
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/lipis/flag-icons/pull/1356
Author: @edwin-shdw
Created: 4/24/2025
Status: ✅ Merged
Merged: 5/29/2025
Merged by: @lipis
Base:
main← Head:main📝 Commits (7)
8f35331refactor: switch to @use-based sass imports31ffd56docs: update README to include SASS usage examples604b56estyle: update double quotes for consistency9898262refactor: move flag icons into $flag-icons-included-countries variable3bc768edocs: extend sass docs with additional example and path to all variables697f2acstyle: add commas on list2b6e1ddstyle: satisfy format test📊 Changes
5 files changed (+305 additions, -285 deletions)
View changed files
📝
README.md(+17 -0)📝
sass/_flag-icons-base.scss(+5 -3)📝
sass/_flag-icons-list.scss(+4 -279)📝
sass/_variables.scss(+276 -0)📝
sass/flag-icons.scss(+3 -3)📄 Description
This PR switches from SASS's
@import-based code to the new@use-based code, since SASS deprecated the@importrule. It does not change anything in the styles itself (new build is identical to previous) but introduces the opportunity to use the new@useimport:Also previous workarounds where you first define the variable and import the package afterwards are still working, so no breaking change is introduced. e.g:
Related Issues:
Addition:
I suggest to move all countries from the whole
@includes inside _flag-icons-list.scss into the$flag-icons-included-countriesvariable.This would make the check at _flag-icons-list.scss#L5 obsolete as imports that define a custom
$flag-icons-included-countriesvariable would simply overwrite the default.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.