Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

fix(docs): fix conflict Fela and FontAwesome#951

Merged
layershifter merged 5 commits intomasterfrom
docs/fela-fa
Feb 22, 2019
Merged

fix(docs): fix conflict Fela and FontAwesome#951
layershifter merged 5 commits intomasterfrom
docs/fela-fa

Conversation

@layershifter
Copy link
Member

Fixes #950.

@layershifter layershifter added 🚀 ready for review 🧰 fix Introduces fix for broken behavior. labels Feb 22, 2019
felaPluginFallbackValue(),
...(options.isRtl ? [rtl()] : []),
],
filterClassName,
Copy link
Member Author

Choose a reason for hiding this comment

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

Choose a reason for hiding this comment

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

Just as I see it here: you can now use the rtl plugin with a theme.direction property to trigger rtl transformation (check the plugin docs) that way you dont have to conditionally add the plugin

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, seen these changes. Going to visit this place in a separate PR 👍

Copy link
Member

@miroslavstastny miroslavstastny left a comment

Choose a reason for hiding this comment

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

Funny :-)

@codecov
Copy link

codecov bot commented Feb 22, 2019

Codecov Report

Merging #951 into master will decrease coverage by <.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #951      +/-   ##
=========================================
- Coverage   80.51%   80.5%   -0.01%     
=========================================
  Files         659     659              
  Lines        8447    8450       +3     
  Branches     1492    1429      -63     
=========================================
+ Hits         6801    6803       +2     
- Misses       1631    1632       +1     
  Partials       15      15
Impacted Files Coverage Δ
packages/react/src/lib/felaRenderer.tsx 93.75% <66.66%> (-6.25%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d930fa...c9a189f. Read the comment docs.


// Blacklist contains a list of classNames that are used by FontAwesome
// https://fontawesome.com/how-to-use/on-the-web/referencing-icons/basic-use
const blacklistedClassNames = ['fa', 'fas', 'far', 'fal', 'fab']
Copy link
Collaborator

Choose a reason for hiding this comment

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

a bit concerned about these as they can change at any time in fontawesome and we have no control over that..

Copy link
Contributor

Choose a reason for hiding this comment

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

agree - especially given that each theme might load CSS libraries with different set of class names that should be blacklisted. Would expect that this blacklisted information will be defined by theme, not (only) general Stardust logic - and, thus, would be extendable

@layershifter layershifter merged commit 72eab06 into master Feb 22, 2019
@delete-merged-branch delete-merged-branch bot deleted the docs/fela-fa branch February 22, 2019 15:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🧰 fix Introduces fix for broken behavior. 🚀 ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants