figma-plugin-ds icon indicating copy to clipboard operation
figma-plugin-ds copied to clipboard

What happened to .visual-bell ?

Open craigmdennis opened this issue 3 years ago • 3 comments

I was using .visual-bell and its various states in the previous version of this design system and now it doesn't seem to be present? Is it called something else? Removed?

craigmdennis avatar Aug 28 '20 11:08 craigmdennis

Hey Craig, I can look at reinstating it. The main reason why I included this was there was no way to push a message via a native notification when I first created this. When Figma added it, it seemed beneficial to most to be able to just use the figma.notify() function.

Does your use case prevent you from being able to use that function?

Cheers!

On Fri, Aug 28, 2020 at 7:52 AM Craig Dennis [email protected] wrote:

I was using .visual-bell and its various states in the previous version of this design system and now it doesn't seem to be present? Is it called something else? Removed?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/thomas-lowry/figma-plugin-ds/issues/35, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJFS3VOQ6OMIPCA2BN7JZHDSC6K7JANCNFSM4QOBPJTA .

-- Tom Lowry

416 795 2082 [email protected]

thomas-lowry avatar Aug 28 '20 13:08 thomas-lowry

I was using the spinner in combination while inserting image data. I was using the 'error' style to display errors while fetching from an API or inserting images.

I can only find docs for a simple String notification and nothing about persisting, clearing, or setting a type like 'error' on the native notice UI.

These are all things I can recreate but it was nice to have a style that mimicked the native notice UI to make the plugin feel more integrated.

craigmdennis avatar Aug 28 '20 13:08 craigmdennis

I've just found https://www.figma.com/plugin-docs/api/properties/figma-notify/ which allows me to cancel a notice and specify the duration before timeout. Which is handy.

craigmdennis avatar Aug 28 '20 13:08 craigmdennis