From eb55243e6b290a2f1d32c26dd6ec7013d4cdc9f1 Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Wed, 21 Aug 2024 09:07:37 -0600 Subject: [PATCH] fix: no color by default for divider --- src/components/divider.tsx | 2 +- src/design.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/divider.tsx b/src/components/divider.tsx index 7c77f37..2c9700f 100644 --- a/src/components/divider.tsx +++ b/src/components/divider.tsx @@ -10,7 +10,7 @@ export function Divider({ dividerChar = '─', dividerColor = 'dim', padding = 1, - textColor = 'white', + textColor, textPadding: titlePadding = 1, title = '', width = 50, diff --git a/src/design.ts b/src/design.ts index 7f0b3f0..ecf2bd1 100644 --- a/src/design.ts +++ b/src/design.ts @@ -46,7 +46,7 @@ export type Design = { */ padding?: number /** - * Color of the title. Defaults to 'white' + * Color of the title */ textColor?: string /** @@ -133,7 +133,7 @@ export function constructDesignParams(design?: Design): RequiredDesign { dividerChar: '─', dividerColor: 'dim', padding: 1, - textColor: 'white', + textColor: 'reset', textPadding: 1, width: 50, ...design?.title,