Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icon_sets() not recognizing certain icons #52

Open
asadow opened this issue Feb 15, 2023 · 3 comments
Open

icon_sets() not recognizing certain icons #52

asadow opened this issue Feb 15, 2023 · 3 comments

Comments

@asadow
Copy link

asadow commented Feb 15, 2023

The guide did not specify that some icons are unavailable and why. I get repeatable errors for icons like "island-tropical", "face-thermometer", "face-mask".

library(tidyverse)
library(reactable)
library(reactablefmtr)

car_data <- MASS::Cars93 %>%
  filter(Type %in% c("Compact", "Sporty", "Van")) %>%
  select(c("Make", "Type", "MPG.city", "MPG.highway")) %>%
  head(10)

reactable(
  car_data,
  defaultColDef = colDef(
    align = "center",
    cell = icon_sets(car_data, icon_size = 28, icons = "face-mask", colors = c("red", "grey", "darkgreen"))
  )
)
#> The `name` provided ('face-mask') does not correspond to a known icon
#> The `name` provided ('face-mask') does not correspond to a known icon
#> The `name` provided ('face-mask') does not correspond to a known icon
#> [repeats above message for number of rows in data]
@rprops
Copy link

rprops commented Apr 20, 2023

The same problem occurs with icon_assign where many free font-awesome icons are not rendered or found.

@jmodlis
Copy link

jmodlis commented Aug 13, 2024

The fonts listed above ("island-tropical", "face-thermometer", and "face-mask") are pro - this is probably why you are having problems.

@asadow
Copy link
Author

asadow commented Aug 13, 2024

Hmm, I wonder if we can integrate a list of pro icons for a more helpful error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants