Skip to content

Conversation

@cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Jun 27, 2025

After some discussion in #4247, we've decided to revert the recent addition of spacing between the icon and label in actionButton() (first introduced in #4242 and later revised in #4247). The reasoning being that the current markup design isn't ideal for the long-term -- we're going with this separator approach (rather than giving the icon and label their own containers) to maximize back-compat (and help us get a patch fix out the door). Also, if and when we decide to add spacing (via containers), we'll want to deliberate whether we do the same for downloadButton() and modalButton() (for consistency).

@cpsievert cpsievert requested a review from gadenbuie June 27, 2025 15:17
@cpsievert cpsievert merged commit 460a93a into main Jun 27, 2025
1 check passed
@cpsievert cpsievert deleted the revert-icon-label-spacing branch June 27, 2025 15:58
@vnijs
Copy link
Contributor

vnijs commented Jul 2, 2025

Just found this PR discussion after adding a comment to the (closed) issue below. I noticed that the spacing between icon and text for action buttons has been reduced. The icon and text are now very close together and are closer than in any previous versions of shiny, at least that I can recall. Is there an easy way to add the spacing back in?

#4239 (comment)

schloerke added a commit that referenced this pull request Jul 6, 2025
* main: (32 commits)
  Revert the addition of spacing between `icon` and `label` in `actionButton()` (#4248)
  Restrict `icon`/`label` separator spacing to `actionButton()` (#4247)
  Fix front-end action button label updating logic (#4242)
  Update news
  Properly handle undefined value for input subscribe callback (#4243)
  Start new version (#4241)
  v1.11.0 release candidate (#4232)
  Follow up to #3996: fix front-end checkbox label updating logic (#4238)
  feat(InputBinding): subscribe callback now supports event priority (#4211)
  Follow up to #3996 when label is unspecified (i.e., NULL), don't include it in the message (#4237)
  Run routine (#4234)
  chore: #4175 update jquery-ui to 1.14.1 (#4205)
  Update jQuery to 3.7.1 (#3969)
  Fix 404 in example 08_html (shiny.min.css) (#4221)
  Follow up to #3870: fix location of news item (#4233)
  Bugfix for error found in tests (#3870)
  Allow update input labels with HTML (#3996)
  Adds mirai to documentation (#4230)
  family->given for R Core authorship (#4222)
  fix(renderPlot): get interactive plotting working with ggplot2 v4.0 (#4228)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants