Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the x button in popover is not visible when theme = "flatly" #1152

Open
olivroy opened this issue Dec 20, 2024 · 1 comment
Open

the x button in popover is not visible when theme = "flatly" #1152

olivroy opened this issue Dec 20, 2024 · 1 comment

Comments

@olivroy
Copy link
Contributor

olivroy commented Dec 20, 2024

Describe the problem

The x button to close the popover is not very visible with theme = "flatly". It looks fine for the default shiny theme.

page_fixed(theme = bs_theme(version = 5, bootswatch = "flatly"), popover("Text", "new text", title = "popover"))

See screenshot:

Image

Expected behavior

As an example, this works well:

page_fixed(theme = bs_theme(version = 5), popover("Text", "new text", title = "popover"))

Image

@gadenbuie
Copy link
Member

gadenbuie commented Dec 26, 2024

I think this is an issue that's present in Bootswatch, or it's an unfortunate combination of flatly's defaults.

We'll consider patching Bootswatch's version of flatly, but we generally prefer not to. Here's some code that you can use to change the values in your app in the mean time. Feel free to propose appropriate colors we could use as defaults.

theme = 
  bs_theme(version = 5, bootswatch = "flatly") |> 
  bs_add_rules(
    ".popover-header {
      --bs-popover-header-color: white;
      --bs-popover-header-bg: black;
    }"
  )

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

No branches or pull requests

2 participants