-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes inside development/docs/c-tooltip.html * Make sure the tooltip icon is vertically aligned with the text in a form * Make sure the tooltip icon is clickable on mobile --------- Co-authored-by: marcelpirnay <[email protected]>
- Loading branch information
1 parent
5ff6f61
commit 47d022e
Showing
4 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
content/templates/_components/c-tooltip/05-c-tooltip-icon.pug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
div(style="padding-bottom: 3.2rem;") | ||
span(class="c-tooltip-icon" data-tooltip="tooltip-5" data-tooltip-placement="top") | ||
+icon('circle-help') | ||
.c-tooltip#tooltip-5(role="tooltip") | ||
| Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
.c-tooltip__arrow(data-popper-arrow) | ||
|
14 changes: 14 additions & 0 deletions
14
content/templates/_components/c-tooltip/06-c-tooltip-icon-in-a-form.pug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
div(style="padding-bottom: 3.2rem;") | ||
.o-form-group-layout.o-form-group-layout--standard | ||
.o-form-group | ||
label.o-form-group__label.o-form-group__label--with-helper(for="defaultFormNameId") | ||
| Name | ||
span(class="c-tooltip-icon" data-tooltip="tooltip-6" data-tooltip-placement="top") | ||
+icon('circle-help') | ||
.c-tooltip#tooltip-6(role="tooltip") | ||
| Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
.c-tooltip__arrow(data-popper-arrow) | ||
.o-form-group__controls | ||
input.c-input(type="email" value="John Doe" id="defaultFormNameId") | ||
|
||
|