help-beta: Add ZulipTip custom component that does not have a header.

We do not want to have a heading for every tip and thus we created a
custom component for our aside. We want to add a lightbulb icon and the
text `Tip:` is bold as a prefix for every tip as if it was already part
of the text. To do that, we cannot insert both of those as html seperate
from the slot html, we had to access the slot html and insert both of
them into the HTML tree.
This commit is contained in:
Shubham Padia
2025-07-24 10:52:05 +00:00
committed by Tim Abbott
parent 78eed0a817
commit cb852b0fa6
4 changed files with 76 additions and 4 deletions

View File

@@ -238,6 +238,11 @@ Source: https://lucide.dev/icons/user-x
Copyright: 2013-2022 Cole Bemis
License: ISC License
Files: web/shared/icons/lightbulb.svg
Source: https://lucide.dev/icons/lightbulb
Copyright: 2013-2022 Cole Bemis
License: ISC License
Files: web/shared/icons/clock.svg
Copyright: 2013-2023 Cole Bemis (https://feathericons.com)
License: Expat