Skip to content

Commit

Permalink
Updated fontawesome icon names from v4 to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Werner committed Jul 29, 2022
1 parent 29ac6e3 commit 5e81a10
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions R/input-airDatepicker.R
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@ airDatepickerInput <- function(inputId,
tags$div(
class = "btn action-button input-group-addon",
id = paste0(inputId, "_button"),
icon("calendar")
icon("calendar-days")
)
},
tagAir,
if (identical(addon, "right")) {
tags$div(
class = "btn action-button input-group-addon",
id = paste0(inputId, "_button"),
icon("calendar")
icon("calendar-days")
)
}
)
Expand Down
4 changes: 2 additions & 2 deletions R/useShinydashboard.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#' "Orders", uiOutput("orderNum2"), "Subtitle", icon = icon("credit-card")
#' ),
#' infoBox(
#' "Approval Rating", "60%", icon = icon("line-chart"), color = "green",
#' "Approval Rating", "60%", icon = icon("chart-line"), color = "green",
#' fill = TRUE
#' ),
#' infoBox(
Expand All @@ -46,7 +46,7 @@
#' ),
#' valueBox(
#' tagList("60", tags$sup(style="font-size: 20px", "%")),
#' "Approval Rating", icon = icon("line-chart"), color = "green"
#' "Approval Rating", icon = icon("chart-line"), color = "green"
#' ),
#' valueBox(
#' htmlOutput("progress"), "Progress", icon = icon("users"), color = "purple"
Expand Down
2 changes: 1 addition & 1 deletion examples/checkboxGroupButtons.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ui <- fluidPage(
choices = names(mtcars),
checkIcon = list(
yes = icon("square-check"),
no = icon("square-o")
no = icon("square")
)
),
verbatimTextOutput("value3")
Expand Down
2 changes: 1 addition & 1 deletion examples/disable-buttons.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ui <- fluidPage(
label = "Radio buttons",
checkIcon = list(
yes = icon("square-check"),
no = icon("square-o")
no = icon("square")
)
),

Expand Down
2 changes: 1 addition & 1 deletion examples/radioGroupButtons.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ui <- fluidPage(
choices = names(mtcars),
checkIcon = list(
yes = icon("square-check"),
no = icon("square-o")
no = icon("square")
)
),
verbatimTextOutput("value3")
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-input-icon.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test_that("textInputIcon works", {
tag <- textInputIcon(
inputId = "ID",
label = "With an icon",
icon = shiny::icon("user-circle-o")
icon = shiny::icon("circle-user")
)

expect_is(tag, "shiny.tag")
Expand Down Expand Up @@ -36,7 +36,7 @@ test_that("textInputIcon works", {
inputId = "ID",
label = "With an icon",
value = 0,
icon = shiny::icon("user-circle-o")
icon = shiny::icon("circle-user")
)

expect_is(tag, "shiny.tag")
Expand Down

0 comments on commit 5e81a10

Please sign in to comment.