Skip to content

fix(design-system): use tertiary buttons for DsModal header triggers [AR-99368] - #932

Open
mmurawski-dn wants to merge 1 commit into
drivenets:mainfrom
mmurawski-dn:claude/AR-99368-modal-header-buttons
Open

mmurawski-dn wants to merge 1 commit into
drivenets:mainfrom
mmurawski-dn:claude/AR-99368-modal-header-buttons

Conversation

@mmurawski-dn

Copy link
Copy Markdown
Collaborator

The DsModal header close and full-screen icons were bare icons with no padding or hover state. They are now small tertiary icon buttons, as in the Figma modal header (Part_modal-header_V2), and match the DsDrawer change in #925.

Changes

  • DsModal.CloseTrigger renders a small (28px), icon-only tertiary DsButtonV3.
  • DsModal.FullScreenTrigger renders the same button. It keeps aria-pressed and the divider before the close button.
  • New locale.close prop sets the close button's accessible name (default Close), as on DsDrawer.CloseTrigger.

Screenshots

Before After
before, bare dark close icon after, tertiary close button
before, bare expand and close icons after, expand and close tertiary buttons with divider

Notes for reviewers

  • The icons are blue (tertiary) and slightly smaller (the button's tiny icon size at small), as Code Connect resolves the Figma header button to DsButtonV3 variant="tertiary" size="small".
  • FullScreenTrigger passes aria-pressed instead of selected, so it doesn't get the selected background. Existing tests cover the pressed state.
  • Visual tests weren't run locally (no Docker daemon). The filters-panel visual story opens its modal only on click.

https://claude.ai/code/session_011eAjWWCCaCnsQogbsdAobE


Generated by Claude Code

@netlify

netlify Bot commented Nov 25, 2026

Copy link
Copy Markdown

👷 Deploy request for drivenets-design-system pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit bb39a96

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant