mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
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:
committed by
Tim Abbott
parent
78eed0a817
commit
cb852b0fa6
1
web/shared/icons/lightbulb.svg
Normal file
1
web/shared/icons/lightbulb.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg>
|
||||
|
After Width: | Height: | Size: 304 B |
Reference in New Issue
Block a user