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

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

Build:
Build:
LAST BUILD BRANCH: fix/avatar-link-underline-v6
DEFAULT BRANCH: main
Ran 17 Nov 2026 08:20PM UTC
Jobs 1
Files 96
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

17 Nov 2026 08:17PM UTC coverage: 96.757% (+0.006%) from 96.751%
44167798514

push

github

web-flow
refactor(Combobox): give the panel its field width while it is positioned (#1849)

* refactor(Combobox): give the panel its field width while it is positioned

The combobox family kept its panel at least as wide as its field with a
ResizeObserver of its own, next to the `autoUpdate` that
`createAnchoredPosition` already runs on the same field. A
`matchAnchorWidth()` middleware in util/floating-ui now writes that
`min-width` from the field's rect during positioning, so `autoUpdate` keeps
it current and the observer is gone. It runs before `flip` and `shift` and
asks Floating UI to measure again when the width changes, so a panel that
was narrow and tall before it widened is still placed below its field. A
field without width clears `min-width` instead of writing `0px`.

The width now arrives with the first position instead of synchronously in
`show()`, so the list scrolls to its active option once the panel is
positioned (`createAnchoredPosition` returns that first positioning as
`ready`). Scrolling earlier measured the wider, unpositioned panel; once it
narrowed, wrapped labels pushed the active option below the visible list.

`matchAnchorWidth` is exported from `utils/floating-ui`, so React and Vue
apply the same rule instead of their own observers. `createAnchoredPosition`
gets its first spec.

* fix(Combobox): let --cui-combobox-popup-min-width size the panel

The anchor width middleware wrote the field width as an inline min-width,
which beat --cui-combobox-popup-min-width in every case, so the documented
token only took effect for a field without width.

The middleware now writes --cui-anchor-width on the panel, and the token
defaults to var(--cui-anchor-width, 100%). The panel stays at least as wide
as its field by default and grows for a wider option, a page can size it
through the token, and a panel without the property, such as a static one,
takes 100% of its containing block. The stylesheet reads the property under
its literal --cui- name be... (continued)

8440 of 8940 branches covered (94.41%)

Branch coverage included in aggregate %.

17 of 17 new or added lines in 2 files covered. (100.0%)

14173 of 14431 relevant lines covered (98.21%)

2332.38 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44167798514.1 17 Nov 2026 08:20PM UTC 96
96.76
GitHub Action Run
Source Files on build 44167798514
  • Tree
  • List 96
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44167798514
  • e1137fcc on github
  • Prev Build on v6-dev (#44156509744)
  • Next Build on v6-dev (#44169433214)
  • 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