Skip to content

Commit

Permalink
Merge pull request #81 from olivroy/patch-1
Browse files Browse the repository at this point in the history
Fix partial match
  • Loading branch information
tomroh authored Mar 15, 2024
2 parents 13148ea + 73a09b8 commit 02de0c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/legend.R
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ makeGradient <- function(breaks, colors, height, width, id, fillOpacity,
curvePercent <- ifelse(shape == 'stadium', '10%', '0')
if (orientation == 'vertical') {
htmltools::tagList(
htmltools::tags$def(
htmltools::tags$defs(
htmltools::tags$linearGradient(
id = id,
x1 = 0, y1 = 0, x2 = 0, y2 = 1,
Expand All @@ -1528,7 +1528,7 @@ makeGradient <- function(breaks, colors, height, width, id, fillOpacity,
)
} else {
htmltools::tagList(
htmltools::tags$def(
htmltools::tags$defs(
htmltools::tags$linearGradient(
id = id,
x1 = 0, y1 = 0, x2 = 1, y2 = 0,
Expand Down

0 comments on commit 02de0c6

Please sign in to comment.