github custom-cards/button-card v5.0.0

latest release: v5.0.1
10 hours ago

5.0.0 (2025-10-05)

⚠ BREAKING CHANGES

  • actions: *_action and icon_*_action stricly follow what is
    allowed in the configuration of this card (see updated documentation).
    If you used some hacks, it might break. If those hacks were created to
    run javascript code, you can now use action: javascript instead.
  • actions: Some of you were using hacks to execute javascript
    actions. This release officially implements action: javascript and
    this is the only supported way to execute javascript actions going
    forward. Any other configuration might execute the javascript action
    while the card is first displayed. Please update your config accordingly
    and read the updated documentation.
  • actions: CSS variables --mdc-ripple-* are no longer supported.
    These have been replaced with --button-card-ripple-* variables. You
    will need to update your configuration.
  • color: Card background color will always be var (--card-background-color) when state is inactive and color_type: card. You can set card background with state.

Features

Bug Fixes

  • actions: avoid executing invalid actions configurations (#1023) (fe05b52)
  • color: inactive card background no longer inactive color when colour_type: card and color set. (#987) (b4f00f9), closes #754
  • console error on click introduced in 5.0.0-dev.1 (fc39748), closes #1001
  • double triggers with icon_*_actions (d9725d7)
  • Embedded light card handle issue (#989) (d01ef37), closes #427 #901
  • Event propagation to parent would not propagate the event properties (#1017) (a2051d4), closes #1015
  • Hold action on picture entity (#996) (9f2501f), closes #994
  • Move while hold on touch devices (#993) (2c17386)
  • Type error when using actions in templates (#1020) (55956fe), closes #1019

Don't miss a new button-card release

NewReleases is sending notifications on new releases.