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

Reconsider .help-block styles #965

Open
gadenbuie opened this issue Jan 9, 2024 · 0 comments
Open

Reconsider .help-block styles #965

gadenbuie opened this issue Jan 9, 2024 · 0 comments

Comments

@gadenbuie
Copy link
Member

gadenbuie commented Jan 9, 2024

bslib includes BS3 backwards compat styles for the .help-block class used by helpText():

.help-text, .help-block {
  @extend .form-text; @extend .text-muted;
}

But in BS3, .help-block included display: block (hence the -block suffix). We don't have similar styles in BS4+, so helpText() renders inline instead of below the controls it tries to describe.

BS3 BS5
image image

Example shinylive app

Two options:

  1. Add a .help-block class to BS4+ that includes display: block.
  2. helpText() might be due for an update.
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

1 participant