Skip to content

feat: support variant in action row#2125

Open
ahivert wants to merge 2 commits into
unfoldadmin:mainfrom
ahivert:feat/support-variant-in-action-row
Open

feat: support variant in action row#2125
ahivert wants to merge 2 commits into
unfoldadmin:mainfrom
ahivert:feat/support-variant-in-action-row

Conversation

@ahivert

@ahivert ahivert commented Jun 29, 2026

Copy link
Copy Markdown

Summary

  • Added support for action variants on inline changelist row actions.

Previously, row actions rendered outside of the dropdown via extra_options={"display_in_dropdown": False} always used the default button variant. Inline row actions now pass the configured ActionVariant to the button component, so variants such as DANGER, PRIMARY, or SUCCESS are rendered correctly.

  • Updated the changelist row actions documentation with an inline row action example using variant=ActionVariant.DANGER.

Test plan

  • Added a test covering an inline changelist row action with ActionVariant.DANGER.
  • Verified the rendered changelist contains the row action label.
  • Verified the rendered output contains the expected danger button styling.

Use of AI

AI was used for all changes done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant