-
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.
Feat(web-twig): Use the new Placement dictionary in
Dropdown
and `T…
…ooltip` #DS-923
- Loading branch information
1 parent
3cd80e6
commit eae000d
Showing
24 changed files
with
234 additions
and
169 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
11 changes: 11 additions & 0 deletions
11
packages/web-twig/src/Resources/components/Dropdown/__tests__/__fixtures__/dropdown.twig
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,11 @@ | ||
<Dropdown>content</Dropdown> | ||
|
||
<!-- Render with all props --> | ||
<Dropdown | ||
elementType="aside" | ||
fullWidthMode="mobile-only" | ||
id="my-dropdown" | ||
placement="top-right" | ||
> | ||
content | ||
</Dropdown> |
5 changes: 0 additions & 5 deletions
5
...es/web-twig/src/Resources/components/Dropdown/__tests__/__fixtures__/dropdownDefault.twig
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/web-twig/src/Resources/components/Dropdown/__tests__/__fixtures__/dropdownFull.twig
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...es/web-twig/src/Resources/components/Dropdown/__tests__/__fixtures__/dropdownWrapper.twig
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 @@ | ||
<DropdownWrapper>content</DropdownWrapper> |
1 change: 0 additions & 1 deletion
1
...twig/src/Resources/components/Dropdown/__tests__/__fixtures__/dropdownWrapperDefault.twig
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
...eb-twig/src/Resources/components/Dropdown/__tests__/__snapshots__/dropdown.twig.snap.html
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,17 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title> | ||
</title> | ||
</head> | ||
<body> | ||
<div class="Dropdown Dropdown--bottomLeft"> | ||
content | ||
</div> | ||
<!-- Render with all props --> | ||
|
||
<aside id="my-dropdown" class="Dropdown Dropdown--topRight" data-spirit-fullwidthmode="mobile-only"> | ||
content | ||
</aside> | ||
</body> | ||
</html> |
28 changes: 0 additions & 28 deletions
28
.../src/Resources/components/Dropdown/__tests__/__snapshots__/dropdownDefault.twig.snap.html
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...wig/src/Resources/components/Dropdown/__tests__/__snapshots__/dropdownFull.twig.snap.html
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
</head> | ||
<body> | ||
<div class="DropdownWrapper"> | ||
Content | ||
content | ||
</div> | ||
</body> | ||
</html> |
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
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
11 changes: 11 additions & 0 deletions
11
packages/web-twig/src/Resources/components/Tooltip/__tests__/__fixtures__/tooltip.twig
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,11 @@ | ||
<Tooltip>Hello there!</Tooltip> | ||
|
||
<!-- Render with all props --> | ||
<Tooltip | ||
closeLabel="Close tooltip" | ||
id="my-tooltip" | ||
isDismissible | ||
placement="right-top" | ||
> | ||
Hello there! | ||
</Tooltip> |
1 change: 0 additions & 1 deletion
1
...ages/web-twig/src/Resources/components/Tooltip/__tests__/__fixtures__/tooltipDefault.twig
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
.../web-twig/src/Resources/components/Tooltip/__tests__/__fixtures__/tooltipDefaultPure.twig
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...ages/web-twig/src/Resources/components/Tooltip/__tests__/__fixtures__/tooltipWrapper.twig
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 @@ | ||
<TooltipWrapper>content</TooltipWrapper> |
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
14 changes: 0 additions & 14 deletions
14
...rc/Resources/components/Tooltip/__tests__/__snapshots__/tooltipDefaultPure.twig.snap.html
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...ig/src/Resources/components/Tooltip/__tests__/__snapshots__/tooltipWrapper.twig.snap.html
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,12 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title> | ||
</title> | ||
</head> | ||
<body> | ||
<div class="TooltipWrapper"> | ||
content | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.