From d63828ae78eef355274bceef4e48ea4592aebf3e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 19 Jul 2021 18:55:37 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=BE=20Improve=20compatibility=20with?= =?UTF-8?q?=20old=20versions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Bluelib/BluelibProvider/Readme.md | 1 + src/components/Bluelib/BluelibProvider/index.js | 5 +++-- src/components/Bluelib/Readme.md | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/Bluelib/BluelibProvider/Readme.md b/src/components/Bluelib/BluelibProvider/Readme.md index bbf7f32..306e31d 100644 --- a/src/components/Bluelib/BluelibProvider/Readme.md +++ b/src/components/Bluelib/BluelibProvider/Readme.md @@ -6,3 +6,4 @@ Valid strings are: - `"paper"` - `"royalblue"` +- `"rygblue"` (aliased to `"royalblue"`) diff --git a/src/components/Bluelib/BluelibProvider/index.js b/src/components/Bluelib/BluelibProvider/index.js index e6e6324..478ebaf 100644 --- a/src/components/Bluelib/BluelibProvider/index.js +++ b/src/components/Bluelib/BluelibProvider/index.js @@ -1,7 +1,7 @@ import React from "react" import skinPaper from "../../../bluelib/src/targets/paper.module.css" -import skinRygblue from "../../../bluelib/src/targets/royalblue.module.css" +import skinRoyalblue from "../../../bluelib/src/targets/royalblue.module.css" import ContextBluelibSkin from "../../../contexts/ContextBluelibSkin" import isString from "../../../utils/isString" import PropTypes from "prop-types" @@ -9,7 +9,8 @@ import PropTypes from "prop-types" const builtinSkins = { "paper": skinPaper, - "royalblue": skinRygblue, + "royalblue": skinRoyalblue, + "rygblue": skinRoyalblue, } diff --git a/src/components/Bluelib/Readme.md b/src/components/Bluelib/Readme.md index 583037f..1ffb97c 100644 --- a/src/components/Bluelib/Readme.md +++ b/src/components/Bluelib/Readme.md @@ -9,6 +9,8 @@ Valid strings are: - `"paper"` - `"royalblue"` +- `"rygblue"` (aliased to `"royalblue"`) + ```jsx