Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explanatory text to ButtonComponent/setCta docs #171

Open
claremacrae opened this issue Jan 18, 2025 · 1 comment
Open

Add explanatory text to ButtonComponent/setCta docs #171

claremacrae opened this issue Jan 18, 2025 · 1 comment

Comments

@claremacrae
Copy link

claremacrae commented Jan 18, 2025

Please could some explanatory docs be added to the setCta page...

I had to ask, and people are still asking:
https://discord.com/channels/686053708261228577/840286264964022302/1330320932086091816

https://docs.obsidian.md/Reference/TypeScript+API/ButtonComponent/setCta

Things to consider mentioning:

  • It is an abbreviation for "Call to Action"
  • It changes how the button is styled, to make it stand out.
  • Use it sparingly, to make the button stand out from others nearby....
@gfxholo
Copy link

gfxholo commented Jan 19, 2025

Support! For consistency, it would be great to update the page for setWarning() in a similar fashion ⚠️

  • Used to indicate actions which permanently delete user data
  • Examples include: the Uninstall button for community plugins, and the Clear button in the file recovery plugin settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants