Skip to content

Fix accordion border colors when an item is opened#42092

Open
julien-deramond wants to merge 1 commit intov6-devfrom
main-jd-fix-accordion-open-border-colors
Open

Fix accordion border colors when an item is opened#42092
julien-deramond wants to merge 1 commit intov6-devfrom
main-jd-fix-accordion-open-border-colors

Conversation

@julien-deramond
Copy link
Member

@julien-deramond julien-deramond commented Feb 21, 2026

Description

This PR fixes the accordion border colors when an item is opened, especially when a theme color is applied.

On https://v6-dev--twbs-bootstrap.netlify.app/docs/6.0/components/accordion/#variants, you can see that the top border of the open blue accordion is gray:

Screenshot 2026-02-21 at 15 54 29

The issue is actually caused by the previous accordion item keeping a gray bottom border, while the opened item has no top border. This results in the visible gray line.

I’ve updated the Sass logic to better handle these different scenarios. There may be a cleaner or more elegant approach, but I didn’t find one after a quick investigation.

When reviewing, please double-check all variants and edge cases (e.g. flush, always-open, etc.) with .theme-primary applied as well. Everything looked correct on my side, but an extra pair of eyes would be appreciated 🙂

Preview URL

https://deploy-preview-42092--twbs-bootstrap.netlify.app/docs/6.0/components/accordion/#variants

@julien-deramond julien-deramond requested a review from a team as a code owner February 21, 2026 14:58
@github-project-automation github-project-automation bot moved this to Inbox in v6.0.0 Feb 21, 2026
@julien-deramond julien-deramond requested a review from mdo February 21, 2026 15:00
@julien-deramond julien-deramond changed the title Fix accordion open border colors Fix accordion border colors when an item is opened Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

1 participant