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

Accordion titles can overlap arrows #1192

Closed
joshuasosa opened this issue Mar 26, 2024 · 2 comments · Fixed by #1198
Closed

Accordion titles can overlap arrows #1192

joshuasosa opened this issue Mar 26, 2024 · 2 comments · Fixed by #1198
Labels
2.0.x only bug Something isn't working

Comments

@joshuasosa
Copy link

Problem/Motivation

Accordion titles can overlap the accordion arrows if there's too much text.

Describe the bug

Sometimes the title of an accordion goes long or wraps on mobile. When it does, it can potentially overlap with the accordion arrows.

Proposed resolution

Changing to something like this fixes it:

.accordion .card-header .btn {
  padding: .75rem 2.25rem .75rem 1.25rem;
}

.accordion .card-header .btn::after {
  right: 10px;
}

@media (min-width: 576px) {
  .accordion .card-header .btn {
    padding-right: 3rem;
  }

  .accordion .card-header .btn::after {
    right: 20px;
  }
}

Alternatively, could backport the way Bootstrap 5 does it with flex.

Expected behavior

Accordion titles should never overlap accordion arrows.

Screenshots

Example

image

image

Example on it.arizona.edu

image
image

Example on lpl.arizona.edu

image

Example solution on lpl.arizona.edu

image

@mmunro-ltrr
Copy link
Member

This may be an issue where there are different fixes for the 2.x & main branches. Investigating...

@mmunro-ltrr
Copy link
Member

Pull request #1198 closed the original issue. Moving to a Flexbox approach remains an open issue, as #1207

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0.x only bug Something isn't working
Projects
None yet
3 participants