From 9bd4609b329173a46cc2379093788efcdd4d7171 Mon Sep 17 00:00:00 2001 From: Cedd Burge Date: Mon, 28 Oct 2019 09:24:52 +0000 Subject: [PATCH] Add notes about upgrading to Elm 0.19 These are the things that I noticed when upgrading, so probably aren't exhaustive but will hopefully help others. Also having an upgrade section will hopefully attract more notes. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index f8996d12..58b43386 100644 --- a/README.md +++ b/README.md @@ -36,5 +36,9 @@ The `Element` module contains all the components that go in your view. The `Style` module is the base for creating your stylesheet. +### Upgrading to Elm 0.19 + +`Color.Color` is replaced by `Style.Color`, and `Color.rgba` is replaced by `Style.rgba`. The new `Style.rgba` function expects to receive values between 0 and 1 to specify the color, whereas the old function expected values between 0 and 255, so if all your colors are white, this is probably why. +