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

feat: support GitHub-flavored alerts #3482

Merged
merged 7 commits into from Jan 21, 2024
Merged

feat: support GitHub-flavored alerts #3482

merged 7 commits into from Jan 21, 2024

Conversation

antfu
Copy link
Member

@antfu antfu commented Jan 20, 2024

close #3278

Added three variants:

  • NOTE (Same as INFO)
  • CAUTION (Same as DANGER)
  • IMPORTANT (with a new purple color).
Screenshot 2024-01-20 at 13 40 07

@antfu
Copy link
Member Author

antfu commented Jan 21, 2024

It can be another PR, but do you think we should add icons to those callouts and make it configurable like infoLabel?

@brc-dd
Copy link
Member

brc-dd commented Jan 21, 2024

It can be another PR, but do you think we should add icons to those callouts and make it configurable like infoLabel?

In one PR Guillaume attempted adding it via CSS icons. We can do that probably and instead of making it configurable via config, better to just allow overriding the icon variables in custom CSS?

@brc-dd brc-dd merged commit ac87d19 into main Jan 21, 2024
7 checks passed
@brc-dd brc-dd deleted the feat/github-alerts branch January 21, 2024 17:47
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support GitHub-style Alert?
2 participants