Repository: ionic-team/ionic-framework
File: core/src/components/modal/gestures/sheet.ts (TypeScript)

Code before:
    /**
     * When the backdrop is enabled, elements such
     * as inputs should not be focusable outside
     * the sheet.
     */
    baseEl.classList.remove(FOCUS_TRAP_DISABLE_CLASS);
  };

  const disableBackdrop = () => {
    baseEl.style.setProperty('pointer-events', 'none');
    backdropEl.style.setProperty('pointer-events', 'none');

    /**
     * When the backdrop is enabled, elements such
     * as inputs should not be focusable outside
     * the sheet.
     * Adding this class disables focus trapping
     * for the sheet temporarily.
     */
    baseEl.classList.add(FOCUS_TRAP_DISABLE_CLASS);
  };

  /**
   * Toggles the footer to an absolute position while moving to prevent
   * it from shaking while the sheet is being dragged.
   * @param footer Whether the footer is in a moving or stationary position.
   */
  const swapFooterPosition = (newPosition: 'moving' | 'stationary') => {
    if (!cachedFooterEl) {
      cachedFooterEl = baseEl.querySelector('ion-footer') as HTMLIonFooterElement | null;
      if (!cachedFooterEl) {
        return;
      }
    }

    const page = baseEl.querySelector('.ion-page') as HTMLElement | null;

    currentFooterState = newPosition;
    if (newPosition === 'stationary') {
      // Reset positioning styles to allow normal document flow
      cachedFooterEl.classList.remove('modal-footer-moving');
      cachedFooterEl.style.removeProperty('position');
      cachedFooterEl.style.removeProperty('width');
      cachedFooterEl.style.removeProperty('height');
      cachedFooterEl.style.removeProperty('top');
      cachedFooterEl.style.removeProperty('left');
      page?.style.removeProperty('padding-bottom');

      // Move to page
      page?.appendChild(cachedFooterEl);
    } else {

Review comment (suggestion):
```suggestion
   * @param newPosition Whether the footer is in a moving or stationary position.
```

Code after:
    /**
     * When the backdrop is enabled, elements such
     * as inputs should not be focusable outside
     * the sheet.
     */
    baseEl.classList.remove(FOCUS_TRAP_DISABLE_CLASS);
  };

  const disableBackdrop = () => {
    baseEl.style.setProperty('pointer-events', 'none');
    backdropEl.style.setProperty('pointer-events', 'none');

    /**
     * When the backdrop is enabled, elements such
     * as inputs should not be focusable outside
     * the sheet.
     * Adding this class disables focus trapping
     * for the sheet temporarily.
     */
    baseEl.classList.add(FOCUS_TRAP_DISABLE_CLASS);
  };

  /**
   * Toggles the footer to an absolute position while moving to prevent
   * it from shaking while the sheet is being dragged.
   * @param newPosition Whether the footer is in a moving or stationary position.
   */
  const swapFooterPosition = (newPosition: 'moving' | 'stationary') => {
    if (!cachedFooterEl) {
      cachedFooterEl = baseEl.querySelector('ion-footer') as HTMLIonFooterElement | null;
      if (!cachedFooterEl) {
        return;
      }
    }

    const page = baseEl.querySelector('.ion-page') as HTMLElement | null;

    currentFooterState = newPosition;
    if (newPosition === 'stationary') {
      // Reset positioning styles to allow normal document flow
      cachedFooterEl.classList.remove('modal-footer-moving');
      cachedFooterEl.style.removeProperty('position');
      cachedFooterEl.style.removeProperty('width');
      cachedFooterEl.style.removeProperty('height');
      cachedFooterEl.style.removeProperty('top');
      cachedFooterEl.style.removeProperty('left');
      page?.style.removeProperty('padding-bottom');

      // Move to page
      page?.appendChild(cachedFooterEl);
    } else {