Skip to content

Commit

Permalink
fix: no color by default for divider
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Aug 21, 2024
1 parent 3cdb730 commit eb55243
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/divider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function Divider({
dividerChar = '─',
dividerColor = 'dim',
padding = 1,
textColor = 'white',
textColor,
textPadding: titlePadding = 1,
title = '',
width = 50,
Expand Down
4 changes: 2 additions & 2 deletions src/design.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export type Design = {
*/
padding?: number
/**
* Color of the title. Defaults to 'white'
* Color of the title
*/
textColor?: string
/**
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit eb55243

Please sign in to comment.