feat: add generic tooltip component

This commit is contained in:
gitea_admin committed 2026-09-21 14:24:15 +02:00
1 parent 71734d6c1d
commit 5b86185cae
5 files changed
+277

No files matched your search

+16
View File
@@ -836,6 +836,21 @@
</span>
</section>
<!-- Component: Tooltip -->
<section id="component-tooltip">
<p class="sg-preview-label">Component: Tooltip</p>
<span class="sg-tooltip-wrap" data-component="tooltip">
<button class="sg-interaction-element sg-button sg-button--active" type="button" aria-describedby="component-tooltip-panel" aria-expanded="false" data-component-part="tooltip-trigger">
Tooltip anzeigen
</button>
<span class="sg-tooltip-panel sg-table-label" id="component-tooltip-panel" role="tooltip" hidden data-component-part="tooltip-panel">
Diese Sprechblase ist trigger-verankert und wechselt bei fehlendem Platz automatisch die Seite.
</span>
</span>
</section>
<!-- Component: Hyperlink -->
<section id="component-hyperlink">
@@ -847,6 +862,7 @@
</section>
<script src="../scripts/help-icon-overlays.js"></script>
<script src="../scripts/tooltip-overlays.js"></script>
<section id="component-file-input">
<p class="sg-preview-label">Component: File Input</p>
<div class="sg-form-preview-area">