Catalogue 0.16.1: Consistent form buttons and a clearly red delete button
Catalogue 0.16.1 gives the catalogue, category, manufacturer and supplier forms PhoenixKit’s shared button, so sizes, disabled states and focus rings match the rest of the admin.
The Delete Forever buttons in the danger zone of the catalogue and category forms carried both the primary and the error colour, and which one showed depended on the stylesheet. They are now always red. The item and attribute group forms are unchanged.
Full release notes: Catalogue 0.16.1
0.16.1 · 16 August 2026
Changed
- Form action buttons use core’s
<.button>(#69/#68) in the manufacturer, supplier, catalogue, and category forms, replacing hand-writtenclass="btn …"markup so sizing, disabled state, and the focus ring track the component.item_form_liveandattribute_group_form_liveare deliberately untouched — both tune styling per place. Requires corephoenix_kit~> 2.8, where<.button>’snavigate/variant/sizeattrs and the status variants live (already the pinned floor).
Fixed
- The “Delete Forever” buttons rendered
btn-primaryandbtn-errortogether on the catalogue and category danger zones.variantreplaces the base colour rather than being suppressed byclass, soclass="btn-error"left both colour classes on the element and the compiled stylesheet’s ordering — not the markup — decided which won. Both now passvariant="error". Pinned intest/web/form_lives_test.exs, alongside a check that the core button’s:restglobal keeps forwarding the submits’name="save_action"/value.
Catalogue 0.16.1. Install or update: {:phoenix_kit_catalogue, "~> 0.16"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.