-
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.
BREAKING CHANGE(web-twig): Add
spirit
infix to data attr names in c…
…omponents #DS-585 ## Migration Guide Add `spirit` infix to all affected APIs. - `data-toggle="collapse"` → `data-spirit-toggle="collapse"` You have to modify these component APIs or usages: - Collapse - Dropdown - FileUploader - Header - Modal - ScrollView - Tooltip To make everything work, you have to make these changes: ### Collapse - `<Button data-toggle="collapse" data-target="target-id" …>` → `<Button data-spirit-toggle="collapse" data-spirit-target="target-id" …>` - `<ButtonLink data-toggle="collapse" data-more …>` → `<ButtonLink data-spirit-toggle="collapse" data-spirit-more …>` ### Dropdown - `<Button data-toggle="dropdown" data-target="target-id" …>` → `<Button data-spirit-toggle="dropdown" data-spirit-target="target-id" …>` - `<Button data-toggle="dropdown" data-autoclose="true" …>` → `<Button data-spirit-toggle="dropdown" data-spirit-autoclose="true" …>` ### FileUploader - `<FileUploader data-toggle="fileUploader" …>` → `<FileUploader data-spirit-toggle="fileUploader" …>` ### Header - `<HeaderButton data-toggle="offcanvas" data-target="target-id" …>` → `<HeaderButton data-spirit-toggle="offcanvas" data-spirit-target="target-id" …>` ### Modal - `<Button data-toggle="modal" data-target="target-id" …>` → `<Button data-spirit-toggle="modal" data-spirit-target="target-id" …>` - `<Button data-dismiss="modal" data-target="target-id" …>` → `<Button data-spirit-dismiss="modal" data-spirit-target="target-id" …>` ### ScrollView - `<ScrollView data-toggle="scrollView" …>` → `<ScrollView data-spirit-toggle="scrollView" …>` ### Tabs - `<button class="Tabs__link" data-toggle="tabs" data-target="target-id" …>` → `<button class="Tabs__link" data-spirit-toggle="tabs" data-spirit-target="target-id" …>` ### Tooltip - `<Button data-toggle="tooltip" data-target="target-id" …>` → `<Button data-spirit-toggle="tooltip" data-spirit-target="target-id" …>` Please refer back to this guide or reach out to our team if you encounter any issues during migration.
- Loading branch information
Showing
75 changed files
with
221 additions
and
218 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
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
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
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
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
50 changes: 25 additions & 25 deletions
50
packages/web-twig/src/Resources/components/Dropdown/stories/DropdownDefault.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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
<DropdownWrapper> | ||
<Button | ||
data-toggle="dropdown" | ||
data-target="#dropdownDefault" | ||
> | ||
Button as anchor | ||
</Button> | ||
<Dropdown id="dropdownDefault"> | ||
<a href="#" class="d-flex mb-400"> | ||
<Icon name="info" UNSAFE_className="mr-400" /> | ||
<span>Information</span> | ||
</a> | ||
<a href="#" class="d-flex mb-400"> | ||
<Icon name="link" UNSAFE_className="mr-400" /> | ||
<span>Bibendum aliquam, fusce integer sit amet congue non nulla aliquet enim</span> | ||
</a> | ||
<a href="#" class="d-flex mb-400"> | ||
<Icon name="profile" UNSAFE_className="mr-400" /> | ||
<span>Profile</span> | ||
</a> | ||
<a href="#" class="d-flex"> | ||
<Icon name="help" UNSAFE_className="mr-400" /> | ||
<span>Help</span> | ||
</a> | ||
</Dropdown> | ||
</DropdownWrapper> | ||
<Button | ||
data-spirit-toggle="dropdown" | ||
data-spirit-target="#dropdownDefault" | ||
> | ||
Button as anchor | ||
</Button> | ||
<Dropdown id="dropdownDefault"> | ||
<a href="#" class="d-flex mb-400"> | ||
<Icon name="info" UNSAFE_className="mr-400" /> | ||
<span>Information</span> | ||
</a> | ||
<a href="#" class="d-flex mb-400"> | ||
<Icon name="link" UNSAFE_className="mr-400" /> | ||
<span>Bibendum aliquam, fusce integer sit amet congue non nulla aliquet enim</span> | ||
</a> | ||
<a href="#" class="d-flex mb-400"> | ||
<Icon name="profile" UNSAFE_className="mr-400" /> | ||
<span>Profile</span> | ||
</a> | ||
<a href="#" class="d-flex"> | ||
<Icon name="help" UNSAFE_className="mr-400" /> | ||
<span>Help</span> | ||
</a> | ||
</Dropdown> | ||
</DropdownWrapper> |
6 changes: 3 additions & 3 deletions
6
packages/web-twig/src/Resources/components/Dropdown/stories/DropdownDisabledAutoclose.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
4 changes: 2 additions & 2 deletions
4
packages/web-twig/src/Resources/components/Dropdown/stories/DropdownFullwidthAll.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
4 changes: 2 additions & 2 deletions
4
packages/web-twig/src/Resources/components/Dropdown/stories/DropdownFullwidthMobileOnly.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
4 changes: 2 additions & 2 deletions
4
packages/web-twig/src/Resources/components/Dropdown/stories/DropdownLongerContent.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
4 changes: 2 additions & 2 deletions
4
packages/web-twig/src/Resources/components/Dropdown/stories/DropdownTopRight.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
Oops, something went wrong.