rstudio / rstudio/bslib

Allow Customization of Full-Screen Card 'expand' and 'close' Labels

Open
#833 4 comments 0 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

When using the 'full_screen' parameter of the card function and setting it to TRUE, the tooltip label for the expand button and the subsequent close button label are hardcoded in English as "Expand" and "Close."

It would greatly benefit developers to have the ability to customize these labels. This customization feature would be particularly useful when developing applications in languages other than English.

One way to implement this feature could be to add optional parameters for custom labels when calling the bslib card function.

Thank you for considering this improvement.
Best regards

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

Use the bslib card function as the entry point and trace how full_screen creates the expand tooltip and subsequent close control. Identify where the hardcoded labels are defined, then verify that optional custom values are accepted and displayed for both controls, including non-English text.

Written by the indexing model from the issue text.

Assessment

Tech stack
scss
Domain
frontend, internationalization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.