• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

coreui / coreui-pro / 32136034936
97%
main: 94%

Build:
Build:
LAST BUILD BRANCH: refactor/clip-path-v6
DEFAULT BRANCH: main
Ran 18 Aug 2026 12:18PM UTC
Jobs 1
Files 66
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Aug 2026 12:17PM UTC coverage: 93.253% (-0.007%) from 93.26%
32136034936

push

github

web-flow
feat(Accordion): allow a custom icon element and a distinct open-state icon (#771)

* feat(Accordion): allow a custom icon element and a distinct open-state icon

Until now the indicator was only a mask image on `.accordion-header::after`,
so any custom icon had to be URL escaped into `--cui-accordion-btn-icon`, and
the only thing that could change on open was its rotation. A plus that turns
into a minus was not expressible at all: the v5 `--cui-accordion-btn-active-icon`
was dropped when the component moved onto `<details>`.

Three ways to set the icon now, none of which changes an untouched accordion:

- An `<svg class="accordion-icon">` inside the `<summary>` takes over from the
  pseudo-element, which stops drawing itself as soon as the header contains
  one, so the two never double up. Icon fonts and `<img>` work the same way.
- `--cui-accordion-btn-active-icon` picks the mask shown while the item is
  open, defaulting to `--cui-accordion-btn-icon`.
- A second element marked `.accordion-icon-active` replaces the first while
  the item is open, and suppresses the rotation, since a supplied open-state
  shape is not meant to turn.

The pseudo-element paints its mask through `currentcolor` now, so both paths
take the icon color from `color` and keep resolving `--cui-accordion-btn-icon-color`
and its active counterpart through the theme slots.

* docs(Accordion): use CoreUI Icons in the custom-icon examples

The examples carried hand-drawn paths while the product ships its own icon
set, so nothing on the page showed how a step looks with the icons a user
actually has. Every custom-icon example is now `cil-chevron-right`,
`cil-chevron-bottom`, `cil-plus` and `cil-minus` — as a font class where the
point is the element slot, and as an inline SVG where the point is that
nothing has to be escaped.

`.accordion-icon` scales an icon-font glyph to the same box as an SVG:
without a `font-size` the glyph fell back to the header's 1rem inside a
1.25rem box and... (continued)

4510 of 5067 branches covered (89.01%)

Branch coverage included in aggregate %.

8620 of 9013 relevant lines covered (95.64%)

399.17 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
64.63
-0.61% js/src/navigation.ts
Jobs
ID Job ID Ran Files Coverage
1 32136034936.1 18 Aug 2026 12:18PM UTC 66
93.25
GitHub Action Run
Source Files on build 32136034936
  • Tree
  • List 66
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #32136034936
  • 63dce91d on github
  • Prev Build on v6-dev (#32128224495)
  • Next Build on v6-dev (#32137734489)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc