### Bug description

👋  this is pretty minor to be sure but I also had to narrow down the issue for my own purposes so I thought I would report. 

Version of quarto tested on: `v1.0.38`, `v1.2.269` and HEAD here: https://github.com/quarto-dev/quarto-cli/commit/46ce2673bc3a5ce74051c7bc5a4a9c3678e25e7a

I can reproduce on both RStudio* and vscode (quarto extension up to date)

> RStudio 2022.07.2+576 "Spotted Wakerobin" Release (e7373ef832b49b2a9b88162cfe7eac5f22c40b34, 2022-09-06) for macOS
> Mozilla/5.0 (Macintosh; Intel Mac OS X 13_0_1) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.10 Chrome/69.0.3497.128 Safari/537.36

I am trying to use plotly with quarto for the first time and I noticed that the modebar hover get buried if one sets `link-external-icon` to `true`:

![image](https://user-images.githubusercontent.com/18472598/207156509-4f3754d6-6677-479d-8e94-f55aefe84135.png)

Obviously I can unblock myself by simply setting it to false which results in this:

![image](https://user-images.githubusercontent.com/18472598/207157315-4109947a-c448-4ac0-8126-f04df23312c9.png)

However I did have some hope that one could set it on a chunk by chunk basis. Here is a reprex that should reproduce the issue:

````md
---
title: "modebar popup"
format: 
  html:
    link-external-icon: true
execute:
  echo: false
  warning: false
---

[link](https://www.google.com)


```{r}
library(ggplot2)
library(plotly)
```

```{r}
#| link-external-icon: false

p <- iris |> 
   ggplot(aes(x = Petal.Width, y = Sepal.Width, text = Species)) +
   geom_point()

ggplotly(p)
```
````

Thanks again for such an amazing product!

<details>
<summary>Session Info</summary>

```r

─ Session info ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.2.1 (2022-06-23)
 os       macOS Ventura 13.0.1
 system   aarch64, darwin20
 ui       X11
 language (EN)
 collate  en_CA.UTF-8
 ctype    en_CA.UTF-8
 tz       America/Vancouver
 date     2022-12-12
 pandoc   2.19.2 @ /opt/homebrew/bin/pandoc

─ Packages ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 package     * version date (UTC) lib source
 assertthat    0.2.1   2019-03-21 [1] CRAN (R 4.2.0)
 cli           3.4.1   2022-09-23 [1] RSPM (R 4.2.1)
 colorspace    2.0-3   2022-02-21 [1] CRAN (R 4.2.0)
 data.table    1.14.6  2022-11-16 [1] RSPM (R 4.2.1)
 DBI           1.1.3   2022-06-18 [1] CRAN (R 4.2.0)
 digest        0.6.31  2022-12-11 [1] RSPM (R 4.2.1)
 dplyr         1.0.10  2022-09-01 [1] RSPM (R 4.2.1)
 fansi         1.0.3   2022-03-24 [1] CRAN (R 4.2.0)
 fastmap       1.1.0   2021-01-25 [1] CRAN (R 4.2.0)
 generics      0.1.3   2022-07-05 [1] CRAN (R 4.2.0)
 ggplot2     * 3.4.0   2022-11-04 [1] RSPM (R 4.2.1)
 glue          1.6.2   2022-02-24 [1] CRAN (R 4.2.0)
 gtable        0.3.1   2022-09-01 [1] RSPM (R 4.2.1)
 htmltools     0.5.4   2022-12-07 [1] RSPM (R 4.2.1)
 htmlwidgets   1.5.4   2021-09-08 [1] CRAN (R 4.2.0)
 httr          1.4.4   2022-08-17 [1] RSPM (R 4.2.1)
 jsonlite      1.8.4   2022-12-06 [1] RSPM (R 4.2.1)
 lazyeval      0.2.2   2019-03-15 [1] CRAN (R 4.2.0)
 lifecycle     1.0.3   2022-10-07 [1] RSPM (R 4.2.1)
 magrittr      2.0.3   2022-03-30 [1] CRAN (R 4.2.0)
 munsell       0.5.0   2018-06-12 [1] CRAN (R 4.2.0)
 pillar        1.8.1   2022-08-19 [1] RSPM (R 4.2.1)
 pkgconfig     2.0.3   2019-09-22 [1] CRAN (R 4.2.0)
 plotly      * 4.10.1  2022-11-07 [1] RSPM (R 4.2.1)
 purrr         0.3.5   2022-10-06 [1] RSPM (R 4.2.1)
 R6            2.5.1   2021-08-19 [1] CRAN (R 4.2.0)
 rlang         1.0.6   2022-09-24 [1] RSPM (R 4.2.1)
 scales        1.2.1   2022-08-20 [1] RSPM (R 4.2.1)
 sessioninfo   1.2.2   2021-12-06 [1] CRAN (R 4.2.0)
 tibble        3.1.8   2022-07-22 [1] CRAN (R 4.2.0)
 tidyr         1.2.1   2022-09-08 [1] RSPM (R 4.2.1)
 tidyselect    1.2.0   2022-10-10 [1] RSPM (R 4.2.1)
 utf8          1.2.2   2021-07-24 [1] CRAN (R 4.2.0)
 vctrs         0.5.1   2022-11-16 [1] RSPM (R 4.2.1)
 viridisLite   0.4.1   2022-08-22 [1] RSPM (R 4.2.1)
 withr         2.5.0   2022-03-03 [1] CRAN (R 4.2.0)
 ```

</details>


### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
dragonstyle
2022-12-12T21:24:03Z
boshek
bug
v1.3
closed
plotly modebar isn't obscured with link-external-icon: true
https://github.com/quarto-dev/quarto-cli/issues/3645