rstudio / rstudio/bslib

Not getting text colored using bslib but works with shiny

Open
#1,125 2 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

Describe the problem

  library(shiny)
  
  ui <- page_fluid(
    tags$style(HTML("
         @import url('https://fonts.googleapis.com/css2?family=Henny+Penny&family=Nosifer&display=swap');
         @import url('https://fonts.googleapis.com/css2?family=Nosifer&display=swap');
         .irs--shiny, .irs-min, .irs--shiny, .irs-max, .irs-single, .irs-to, .irs-from, .irs-grid-text, .js-irs-0 {
        font-family: 'Nosifer', sans-serif;
        color: red;}"
    )),
    sliderInput("a", "a", 10, 100, 50)
  )
  
  server <- function(input, output, session) {
    
  }
  
  shinyApp(ui, server)```

page_fluid:
![image](https://github.com/user-attachments/assets/72a080a9-330c-4eee-8dcc-2185ca2e80fc)

pageFluid

![image](https://github.com/user-attachments/assets/ef0cdd77-5f4e-4336-b324-f8215c1ef57b)


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

Reproduce the example using page_fluid, fluidPage, tags$style, and sliderInput, then compare the generated HTML and applied styles. Trace how page_fluid handles the inline CSS and verify that the font and red color apply there while preserving the existing fluidPage behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
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.