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

fix(felaPluginFallbackValue): broken because of order of plugins#1461

Merged
mnajdova merged 3 commits intomasterfrom
fix/fela-callback-plugin
Jun 6, 2019
Merged

fix(felaPluginFallbackValue): broken because of order of plugins#1461
mnajdova merged 3 commits intomasterfrom
fix/fela-callback-plugin

Conversation

@mnajdova
Copy link
Contributor

@mnajdova mnajdova commented Jun 6, 2019

Fix #1460 After introducing the felaExpandCssShorthandsPlugin the felaPluginFallbackValue was broken, because of the wrong order of the plugins. The felaExpandCssShorthandsPlugin should run after the felaPluginFallbackValue. As part of the PR there is a screenshot test added that will ensure the fallback value plugin is working as expected.

const ProviderExampleShorthand = () => (
<Segment
content="Segment with blue border"
styles={{ border: ['1px solid red', '1px solid blue'] as any }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should update the typings for this, currently an array is not a valid border value...

Copy link
Member

Choose a reason for hiding this comment

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

If we want to use visual tests for this I would propose to add one red segment with ['1px solid red', '1px solid invalid'] to verify that both values from the array are written to the styles.

@codecov
Copy link

codecov bot commented Jun 6, 2019

Codecov Report

Merging #1461 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1461   +/-   ##
=======================================
  Coverage   73.14%   73.14%           
=======================================
  Files         805      805           
  Lines        6073     6073           
  Branches     1775     1794   +19     
=======================================
  Hits         4442     4442           
  Misses       1625     1625           
  Partials        6        6
Impacted Files Coverage Δ
packages/react/src/lib/felaRenderer.tsx 75% <ø> (ø) ⬆️

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 ec16272...852df6c. Read the comment docs.

@mnajdova mnajdova merged commit 1182370 into master Jun 6, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix/fela-callback-plugin branch June 6, 2019 12:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CSS Fallback values do not work (again)

3 participants