From dd7de3095739003e447741213e36da66aff115e2 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Sun, 30 Aug 2020 15:46:20 +0800 Subject: [PATCH] Add opt-in features Button, Select, and TextInput has now opt-in borders. --- lib/components/Button/Button.test.tsx | 3 +- lib/components/Button/Button.tsx | 12 ++++++- lib/components/Select/Select.test.tsx | 6 ++-- lib/components/Select/Select.tsx | 32 +++++++++++++++++- lib/components/TextInput/TextInput.test.tsx | 8 ++--- lib/components/TextInput/TextInput.tsx | 36 ++++++++++++++++++++- package.json | 2 +- 7 files changed, 86 insertions(+), 13 deletions(-) diff --git a/lib/components/Button/Button.test.tsx b/lib/components/Button/Button.test.tsx index c2f286c..e8de787 100644 --- a/lib/components/Button/Button.test.tsx +++ b/lib/components/Button/Button.test.tsx @@ -60,9 +60,8 @@ describe('on unknown kinds', () => { }) }) - it('should render a border', () => { - const wrapper = Enzyme.shallow(