Bricks 2.5 - Some Missing options in Checkout coupon element

Hello bricks team,

Some small but important features that can complete the Checkout coupon element.

1- Icon transform (Open) for Toggleable form - In most cases, this allows us to use a single icon—utilizing an ‘Icon transform (Open)’—instead of adding a separate icon for the ‘expanded’ state.

2- Ability to edit the field placeholder - Currently, the coupon code text cannot be edited.

3- Ability to configure styles for open and closed states - For example, when the checkout coupon is closed, the background color should be white, and it should change to a different color as soon as it is closed.

Hey Victor, try this in the Checkout Coupon element under Style → CSS → Custom CSS. It uses the toggle’s aria-expanded state to flip the chevron and change the background when the form opens.

%root% .coupon-toggle[aria-expanded="true"] {
  background-color: #f1f5f3;
}

%root% .coupon-toggle[aria-expanded="true"] .showcoupon :is(i, svg) {
  display: inline-block;
  transform: rotate(180deg);
}