From 1b2504a6e210185fa23b1fe382525dd9737f1bc5 Mon Sep 17 00:00:00 2001 From: apanizo Date: Tue, 28 Aug 2018 14:10:14 +0200 Subject: [PATCH] Improve upperFirst method --- src/utils/css.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/css.js b/src/utils/css.js index 3c556b23..34dddbe7 100644 --- a/src/utils/css.js +++ b/src/utils/css.js @@ -1,5 +1,5 @@ // @flow -export const upperFirst = (value: string) => value.charAt(0).toUpperCase() + value.slice(1) +export const upperFirst = (value: string) => value.charAt(0).toUpperCase() + value.toLowerCase().slice(1) type Value = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'center' | 'end' | 'start' | number | boolean