rstudio / rstudio/bslib

Tooltips don't work on disabled buttons

Open
#1,185 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
SCSS
Stars
569
Forks
72
Avg merge
1d 2h
Merged PRs (30d)
5

Description

I've seen tooltips used to give a reason why an input element is disabled, but this pattern doesn't work with `tooltip(). Here's an example from py-shiny, but I'm sure it repros on the R side.

from shiny.express import ui

with ui.tooltip(id="tt_edit_last"):
        ui.input_action_button("edit_last", "Edit last message", disabled=True)
        "Undo last response and edit your message"

shinylive example

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the linked Shinylive example and tracing the tooltip() behavior for the disabled input_action_button. Compare the Python example with the reported R-side behavior; the issue is done when tooltips provide their explanatory text for disabled buttons.

Written by the indexing model from the issue text.

Assessment

Tech stack
bootstrap, python, r, scss
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.