Buttons in alerts #1526
-
Hi Paste homies 👋 Angela and I were talking about putting a button in an alert but it says "Avoid using buttons in alerts unless it triggers an action." If we wooooould like it to trigger an action, maybe we can update the language to say something about allowing buttons in alerts? Anchors won't really work for an action so having that included somewhere might clear things up a bit. Was thinking something like this? Also, not sure where this would be in your roadmap (maybe callout?), but it could be related to more of an in-page banner that we discussed like this: Let me know your thoughts! Down to work with you to contribute as well 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Oh heyyyy! So sorry for the delay on this! Good call on updating the language on the Alert docs—I can go ahead submit a PR to do that. Sarah and I were just chatting about this, and we were thinking it might make most sense to just get rid of that do/don't on the Alert page about not using buttons, since we have a pattern around anchor vs. button usage now that covers that. What do you think? And on your second question, yeah, that's probably a callout. It's not too high up on the roadmap, because it's pretty easily composable with box/text, and a lot of folks are generally using cards to do this type of messaging right now. Definitely down for a contribution! |
Beta Was this translation helpful? Give feedback.
Oh heyyyy! So sorry for the delay on this!
Good call on updating the language on the Alert docs—I can go ahead submit a PR to do that. Sarah and I were just chatting about this, and we were thinking it might make most sense to just get rid of that do/don't on the Alert page about not using buttons, since we have a pattern around anchor vs. button usage now that covers that. What do you think?
And on your second question, yeah, that's probably a callout. It's not too high up on the roadmap, because it's pretty easily composable with box/text, and a lot of folks are generally using cards to do this type of messaging right now. Definitely down for a contribution!