Add a "details_open" wrapper element options to checkout panes

Created on 8 August 2025, 9 days ago

Describe your bug or feature request.

We provide a "details" => "Details (closed)" wrapper element option because the "details" element by default is closed.
We can provide a "details_open" option, and then set the #open attribute to true when "details_open" is chosen.

This is the code that needs to change:

  /**
   * Gets the "wrapper_element" allowed options.
   *
   * @return array
   *   The "wrapper_element" options.
   */
  protected function getWrapperElementOptions(): array {
    return [
      'container' => $this->t('Container'),
      'fieldset' => $this->t('Fieldset'),
      'details' => $this->t('Details (Closed)'),
    ];
  }
Feature request
Status

Active

Version

3.0

Component

Checkout

Created by

🇮🇱Israel jsacksick

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024