-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Modify icon()
function to call fontawesome::fa_i()
for equivalent functionality
#3302
Conversation
@rich-iannone the unit tests are failing because some of the tabset panel logic relies on this behavior: > cat(as.character(icon(NULL)))
<i class="" role="presentation" aria-label=" icon"></i> We should probably do an early return for that case... |
Thanks @cpsievert , didn't know about that one and was puzzled by the CI results. I've pushed a change based on your recommendation. |
Would it be possible to get the |
Yea, but I'm not sure I want to allow |
* master: (48 commits) Modify `icon()` function to call `fontawesome::fa_i()` for equivalent functionality (#3302) Follow up to #3372: fix oversight in refactor (#3387) Revert "Do not double pull within rituals" Do not double pull within rituals Remove deprecated code and parameters (#3137) Prettify TS Rebuild JS files Add important flag Update comments Add sendImageSize2 Use removeSheet() Make more CSS properties !important Add note about synchronous behavior in IE Rebuild JS files Simplify IE CSS handling New strategy for sending information when CSS loads Make sure dev version of rlang is available (#3382) Reduce complexity and 'black-boxed' nature of tab panel logic (#3372) Install dev version of rlang (#3379) Comment about the hoisting ...
This PR migrates the dependency files for Font Awesome icon support (font files, CSS, JS) over to the fontawesome package and modifies the
shiny::icon()
function so that it callsfontawesome::fa_i()
to generate the<i>
tag object. Other scripts that create supporting Font Awesome objects have been moved over to the fontawesome package and are removed here.The fontawesome package has been placed in
Imports
andRemotes
(for now, due to be in CRAN shortly). Manual testing has been done using this branch and the release candidate of fontawesome. The demo app138-icon-fontawesome
works with these builds.