Skip to content

Commit

Permalink
chore: move shouldUseContrastColor to general utils dir
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric committed Oct 21, 2024
1 parent 6b16f6e commit e8f6a88
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { colors } from '@dhis2/ui'
import { LEGEND_DISPLAY_STYLE_TEXT } from '../../../../../../../modules/legends.js'
import { shouldUseContrastColor } from '../../../../../../util/shouldUseContrastColor.js'
import { getSingleValueLegendColor } from './getSingleValueLegendColor.js'
import { shouldUseContrastColor } from './shouldUseContrastColor.js'

export function getSingleValueTextColor(
baseColor,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { colors } from '@dhis2/ui'
import { LEGEND_DISPLAY_STYLE_FILL } from '../../../../../../../modules/legends.js'
import { shouldUseContrastColor } from '../../../../../../util/shouldUseContrastColor.js'
import { getSingleValueLegendColor } from './getSingleValueLegendColor.js'
import { shouldUseContrastColor } from './shouldUseContrastColor.js'

export function getSingleValueTitleColor(
customColor,
Expand Down

0 comments on commit e8f6a88

Please sign in to comment.