Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2582 from boltdesignsystem/bugfix/DS-893-SN-Long-…
…strings-in-notifications-causes-some-minor-layout-issues DS-893: Long strings in notifications causes some minor layout issues
- Loading branch information
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
73
...rc/pages/pattern-lab/_patterns/999-tests/notifications/00-notifications-long-strings.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,73 @@ | ||
{% set icon_announce %} | ||
{% include '@bolt-elements-icon/icon.twig' with { | ||
name: 'pega-announce', | ||
size: 'medium', | ||
} only %} | ||
{% endset %} | ||
{% set header_actions %} | ||
{% include '@bolt-components-notifications/notifications-header-action.twig' with { | ||
icon: icon_check_circle, | ||
label: 'Mark all as read', | ||
attributes: { | ||
type: 'button', | ||
}, | ||
} only %} | ||
{% include '@bolt-components-notifications/notifications-header-action.twig' with { | ||
icon: icon_pega_setting, | ||
label: 'Notification settings', | ||
attributes: { | ||
href: '#!', | ||
}, | ||
} only %} | ||
{% endset %} | ||
{% set content %} | ||
{% set list_content %} | ||
{% include '@bolt-components-notifications/notifications-list-heading-divider.twig' with { | ||
content: 'Latest', | ||
} only %} | ||
{% include '@bolt-components-notifications/notifications-list-item.twig' with { | ||
signifier: icon_announce, | ||
site_name: 'Community', | ||
timestamp: '5 min ago', | ||
message: { | ||
content: 'This a test how it will behave when we have a very long stringstringstringstringstringstringstringstringstringstring without spaces and for example the URL like this one: <em>http://www.this-is/a/very-long/pega-link/WithoutAnySpacesItsForTestingTheBehaviourOfWrappingVeryLongStrings.com</em>.', | ||
attributes: { | ||
href: '#!', | ||
}, | ||
}, | ||
} only %} | ||
{% include '@bolt-components-notifications/notifications-list-item.twig' with { | ||
signifier: icon_announce, | ||
site_name: 'Collaboration Center', | ||
timestamp: '10 min ago', | ||
message: { | ||
content: 'This is a <em>read notification</em>.', | ||
attributes: { | ||
href: '#!', | ||
}, | ||
}, | ||
read: true, | ||
} only %} | ||
{% endset %} | ||
|
||
{% include '@bolt-components-notifications/notifications-list.twig' with { | ||
content: list_content, | ||
} only %} | ||
{% endset %} | ||
{% set footer_content %} | ||
{% include '@bolt-elements-text-link/text-link.twig' with { | ||
content: 'View all notifications', | ||
reversed_underline: true, | ||
expand_click_target: true, | ||
attributes: { | ||
href: '#!', | ||
} | ||
} only %} | ||
{% endset %} | ||
|
||
{% include '@bolt-components-notifications/notifications.twig' with { | ||
content: content, | ||
footer: { | ||
content: footer_content, | ||
}, | ||
} only %} |
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