[PR #950] [MERGED] Make Unknown flag (xx) as the first flag in flag list #1126

Closed
opened 2026-03-03 14:42:16 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/lipis/flag-icons/pull/950
Author: @colinj
Created: 4/3/2022
Status: Merged
Merged: 4/6/2022
Merged by: @lipis

Base: mainHead: reorder-flag-icons


📝 Commits (1)

  • 764d114 Make Unknown flag (xx) as first flag in flag list

📊 Changes

3 files changed (+2 additions, -2 deletions)

View changed files

📝 less/flag-icons-list.less (+1 -0)
📝 less/flag-icons-more.less (+0 -1)
📝 sass/_flag-icons-list.scss (+1 -1)

📄 Description

Make Unknown (xx) flag as the first flag so that all other flag icons will have CSS precedence over the Unknown flag.

This will allow all other defined flags to override the Unknown flag. The Unknown flag will only be displayed if it is used against a non-existent flag icon class (eg fi-vb). In this scenario, the Unknown flag will become the fallback flag icon since non-existent country flag icon class will not exist.

This PR fixes Issue #940
Fixes #940


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/lipis/flag-icons/pull/950 **Author:** [@colinj](https://github.com/colinj) **Created:** 4/3/2022 **Status:** ✅ Merged **Merged:** 4/6/2022 **Merged by:** [@lipis](https://github.com/lipis) **Base:** `main` ← **Head:** `reorder-flag-icons` --- ### 📝 Commits (1) - [`764d114`](https://github.com/lipis/flag-icons/commit/764d11478bb163b958f7c6dd03f6c02ea954d35a) Make Unknown flag (xx) as first flag in flag list ### 📊 Changes **3 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `less/flag-icons-list.less` (+1 -0) 📝 `less/flag-icons-more.less` (+0 -1) 📝 `sass/_flag-icons-list.scss` (+1 -1) </details> ### 📄 Description Make Unknown (xx) flag as the first flag so that all other flag icons will have CSS precedence over the Unknown flag. This will allow all other defined flags to override the Unknown flag. The Unknown flag will only be displayed if it is used against a non-existent flag icon class (eg `fi-vb`). In this scenario, the Unknown flag will become the fallback flag icon since non-existent country flag icon class will not exist. This PR fixes Issue #940 Fixes #940 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 14:42:16 +03:00
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#1126
No description provided.