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

Reduce complexity and 'black-boxed' nature of tab panel logic #3372

Merged
merged 13 commits into from
May 5, 2021

Conversation

cpsievert
Copy link
Collaborator

(To be merged after rstudio/htmltools#215)

In #3315, a lot of complexity was added to buildTabset() (and the JS behind insertTab(), etc) due to this Bootstrap 4+ regression (at the time, I thought it was a "known" regression, but apparently it was an oversight). That regression has already been fixed in {bslib}'s version = 4 (via rstudio/bslib#306), hence the bump in {bslib}'s version requirement.

R/bootstrap.R Outdated Show resolved Hide resolved
@cpsievert cpsievert marked this pull request as ready for review April 27, 2021 16:47
R/bootstrap.R Outdated Show resolved Hide resolved
@wch
Copy link
Collaborator

wch commented May 5, 2021

I believe that tagQuery() should preserve attribute order. Can you provide a minimal example where it doesn't?

@cpsievert
Copy link
Collaborator Author

I believe that tagQuery() should preserve attribute order

You're right. I checked with Barret and it should preserve HTML attribute order (it doesn't preserve ordering of the $name, $attribs, and $children elements, though)

I was getting confused by the fact that, in the old behavior, active vs non-active tabs will have different ordering of their attributes. If you think it's important we maintain that (inconsistent) ordering, I can do it, but it'll introduce more complexity

@cpsievert

This comment has been minimized.

@cpsievert cpsievert merged commit 3e33755 into master May 5, 2021
@cpsievert cpsievert deleted the li-dropdown branch May 5, 2021 15:05
cpsievert added a commit that referenced this pull request May 10, 2021
schloerke added a commit that referenced this pull request May 17, 2021
* 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
  ...
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

Successfully merging this pull request may close these issues.

2 participants