Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(flag): ensure unique flag and a-z class names #2466

Merged
merged 3 commits into from Sep 25, 2022

Conversation

lubber-de
Copy link
Member

Description

  • flag class generation sometimes generated identical selectors.
  • classnames had diacritic letters
  • crosseds is not a flag in the manner of country/landscape/grouping flags

Closes

#2357 (comment)

@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug lang/css Anything involving CSS state/awaiting-reviews Pull requests which are waiting for reviews labels Sep 25, 2022
@lubber-de lubber-de added this to the 2.9.0 milestone Sep 25, 2022
aliasClass: false;
aliasClass2: false;
};
@1f3f3-fe0f-200d-1f308: {
countrycode: rainbow;
class: rainbow;
aliasClass: gay_pride;
class: gay_pride;
Copy link
Contributor

@mvorisek mvorisek Sep 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any idea why this generated i.flag.gay.pride::before selector? (not tested this exact PR, notice the . instead of _)

image

Copy link
Member Author

@lubber-de lubber-de Sep 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the code assumes an underscore to be a word/classname split. (Same for "cayman_islands") following the original idea of SUI to have "spoken sentence words as classnames"
However, i just named it "pride" and added another alias LGBT instead by bb32817 according to https://emojiterra.com/rainbow-flag/ or https://emojipedia.org/rainbow-flag/

Copy link
Contributor

@mvorisek mvorisek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lubber-de lubber-de merged commit c4b3a74 into fomantic:develop Sep 25, 2022
@lubber-de lubber-de deleted the fixDoubleFlags branch September 25, 2022 19:03
lubber-de added a commit to fomantic/Fomantic-UI-Docs that referenced this pull request Sep 25, 2022
removed some unsupported emojis and flag renaming as of fomantic/Fomantic-UI#2466 and fomantic/Fomantic-UI#2464
@lubber-de lubber-de removed the state/awaiting-reviews Pull requests which are waiting for reviews label Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/css Anything involving CSS type/bug Any issue which is a bug or PR which fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants