Skip to content

Commit

Permalink
Update utils_color_contrast.R
Browse files Browse the repository at this point in the history
  • Loading branch information
rich-iannone committed Oct 4, 2024
1 parent 1975ef2 commit 6cc88f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils_color_contrast.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ get_contrast_ratio <- function(
) {

# Get the correct `algo` value
algo <- rlang::arg_match(algo)
algo <- rlang::arg_match0(algo, values = c("apca", "wcag"))

if (length(color_1) < 1L || length(color_2) < 1L) {
cli::cli_abort(
Expand Down

0 comments on commit 6cc88f1

Please sign in to comment.