storybookjs / design-system

🗃 Storybook Design System
https://master--5ccbc373887ca40020446347.chromatic.com/
1.91k stars 585 forks source link

FormErrorState: Allow outside control of error messages #349

Closed kylesuss closed 2 years ago

kylesuss commented 2 years ago

Small detail on the collapsible forms that would be nice to customize. We have this form on Chromatic that is in a collapsible section & when it is collapsing with error tooltips open, they linger visually when the section collapses past them. The tooltips are mounted in a portal so they can't be controlled easily via overflow styling on a parent element, hence this solution here.

Broken broken-hd

Fixed fixed-hd

📦 Published PR as canary version: 7.3.2-canary.349.3a74afc.0
:sparkles: Test out this PR locally via: ```bash npm install @storybook/design-system@7.3.2-canary.349.3a74afc.0 # or yarn add @storybook/design-system@7.3.2-canary.349.3a74afc.0 ```
github-actions[bot] commented 2 years ago

:rocket: PR was released in v7.3.2 :rocket: