Skip to content

Commit

Permalink
change id in panel_item (#124)
Browse files Browse the repository at this point in the history
While doing this
insightsengineering/teal.modules.general#496, I
realized that the `id` on the div should be one place higher.
@Polkas confirmed the point.

Signed-off-by: Maciej Nasinski <[email protected]>
Co-authored-by: Maciej Nasinski <[email protected]>
  • Loading branch information
mhallal1 and Polkas authored Dec 6, 2022
1 parent b1e62bc commit 1d77191
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
### Bug fixes

* Added labels to pagination button in `table_with_settings` and fixed alt text.
* Fixed the html structure of `panel_item` function.

### Miscellaneous

Expand Down
2 changes: 1 addition & 1 deletion R/panel_group.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ panel_item <- function(title, ..., collapsed = TRUE, input_id = NULL) {
if (bs_version == "3") {
res_tag$children <- list(
tags$div(
id = div_id,
class = "panel panel-default",
tags$div(
id = div_id,
class = paste("panel-heading", ifelse(collapsed, "collapsed", "")),
`data-toggle` = "collapse",
href = paste0("#", panel_id),
Expand Down

0 comments on commit 1d77191

Please sign in to comment.