Skip to content

Commit

Permalink
fix alignment
Browse files Browse the repository at this point in the history
IDE color preview adds a couple of characters in the row with the color
  • Loading branch information
gadenbuie authored Nov 25, 2024
1 parent 5986348 commit 955658f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ get_color_contrast <- function(bg_color) {
options = sass::sass_options(source_map_embed = FALSE)
)
# example: css <- "._ {\n --RET: #fff;\n}"
# we'll split to get value: ^ ^
# we'll split to get value: ^ ^
ret <- strsplit(css, "--RET:")[[1]][2]
trimws(strsplit(ret, ";")[[1]][1])
}, error = function(err) {
Expand Down

0 comments on commit 955658f

Please sign in to comment.