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

feat(icon): customizable icons by using maps #2470

Merged
merged 2 commits into from
Sep 30, 2022

Conversation

lubber-de
Copy link
Member

Description

This PR moves all icon declarations out of the overrides file and into LESS maps, so the icon selectors are not hardcoded anymore but rendered at compile time.

This now offers easy adjustment of (un)-wanted icons by simpy adjusting the related @icon-map maplist in a possible custom themes icon.variables

Previously that wasn't really possible, as the default theme overrides were always included, so even if your custom theme only needed a handful of icons you always got the whole set anyway.

I did the same for emoji and flag already.

The related script for self creation is adjusted in fomantic/create-fomantic-icons#184

@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug type/feat Any feature requests or improvements state/awaiting-reviews Pull requests which are waiting for reviews tag/breaking-change Any pull request which is waiting for a breaking change release labels Sep 28, 2022
@lubber-de lubber-de added this to the 2.9.0 milestone Sep 28, 2022
@lubber-de lubber-de added the lang/css Anything involving CSS label Sep 28, 2022
Copy link
Contributor

@prudho prudho 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 added the state/awaiting-docs Pull requests which need doc changes/additions label Sep 30, 2022
@lubber-de lubber-de merged commit 80dca46 into fomantic:develop Sep 30, 2022
@lubber-de lubber-de deleted the customizableIcons branch September 30, 2022 20:07
@lubber-de lubber-de removed state/awaiting-reviews Pull requests which are waiting for reviews type/bug Any issue which is a bug or PR which fixes a bug labels Sep 30, 2022
@lubber-de
Copy link
Member Author

Doc hint added by fomantic/Fomantic-UI-Docs#377

@lubber-de lubber-de added state/has-docs A issue/PR which requires documentation changes and has the corresponding PR open in the docs repo and removed state/awaiting-docs Pull requests which need doc changes/additions labels Oct 1, 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 state/has-docs A issue/PR which requires documentation changes and has the corresponding PR open in the docs repo tag/breaking-change Any pull request which is waiting for a breaking change release type/feat Any feature requests or improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants