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

fix(Types): remove Sizes and Weights enums, use typed string in Text instead #446

Merged
merged 2 commits into from
Nov 7, 2018

Conversation

jurokapsiar
Copy link
Contributor

Text component had size property typed as Sizes. But since Sizes was not exported, it was not possible to use it. The agreement is to replace it with just strings and remove both Sizes and Weights enums.

In theory this changes the API but I'm not going to mark this as a breaking change since the previous API version was not usable.

@codecov
Copy link

codecov bot commented Nov 7, 2018

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #446   +/-   ##
=======================================
  Coverage   91.84%   91.84%           
=======================================
  Files          41       41           
  Lines        1337     1337           
  Branches      168      193   +25     
=======================================
  Hits         1228     1228           
  Misses        105      105           
  Partials        4        4
Impacted Files Coverage Δ
src/components/Text/Text.tsx 100% <ø> (ø) ⬆️

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 fdbcde7...d5402d2. Read the comment docs.

@jurokapsiar jurokapsiar merged commit 5cd6713 into master Nov 7, 2018
@jurokapsiar jurokapsiar deleted the fix/textsizes branch November 7, 2018 19:48
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 merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants