Skip to content

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-written class="btn …" markup so sizing, disabled state, and the focus ring track the component. item_form_live and attribute_group_form_live are deliberately untouched — both tune styling per place. Requires core phoenix_kit ~> 2.8, where <.button>’s navigate / variant / size attrs and the status variants live (already the pinned floor).

Fixed

  • The “Delete Forever” buttons rendered btn-primary and btn-error together on the catalogue and category danger zones. variant replaces the base colour rather than being suppressed by class, so class="btn-error" left both colour classes on the element and the compiled stylesheet’s ordering — not the markup — decided which won. Both now pass variant="error". Pinned in test/web/form_lives_test.exs, alongside a check that the core button’s :rest global 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.