Skip to content

Commit 48fd869

Browse files
authored
Merge pull request rstudio#1848 from rstudio/barbara/fix/icon
Revert back the relative position of the icon and title in tabPanel's and navbarMenu's
2 parents dc18b20 + 53e4748 commit 48fd869

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ shiny 1.0.5.9000
1919

2020
* The internal `URLdecode()` function previously was a copy of `httpuv::decodeURIComponent()`, assigned at build time; now it invokes the httpuv function at run time.
2121

22+
* Fixed [#1840](https://github.com/rstudio/shiny/issues/1840): with the release of Shiny 1.0.5, we accidently changed the relative positioning of the icon and the title text in `navbarMenu`s and `tabPanel`s. This fix reverts this behavior back (i.e. the icon should be to the left of the text and/or the downward arrow in case of `navbarMenu`s). ([#1848](https://github.com/rstudio/shiny/pull/1848))
23+
2224
### Library updates
2325

2426

R/bootstrap.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -883,8 +883,8 @@ buildTabItem <- function(index, tabsetId, foundSelected, tabs = NULL,
883883
tags$a(href = "#",
884884
class = "dropdown-toggle", `data-toggle` = "dropdown",
885885
`data-value` = divTag$menuName,
886-
divTag$title, tags$b(class = "caret"),
887-
getIcon(iconClass = divTag$iconClass)
886+
getIcon(iconClass = divTag$iconClass),
887+
divTag$title, tags$b(class = "caret")
888888
),
889889
tabset$navList # inner tabPanels items
890890
)
@@ -899,8 +899,8 @@ buildTabItem <- function(index, tabsetId, foundSelected, tabs = NULL,
899899
href = paste("#", tabId, sep = ""),
900900
`data-toggle` = "tab",
901901
`data-value` = divTag$attribs$`data-value`,
902-
divTag$attribs$title,
903-
getIcon(iconClass = divTag$attribs$`data-icon-class`)
902+
getIcon(iconClass = divTag$attribs$`data-icon-class`),
903+
divTag$attribs$title
904904
)
905905
)
906906
# if this tabPanel is selected item, mark it active

0 commit comments

Comments
 (0)