Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DS-540: scroll to top demo warning #2481

Merged
merged 2 commits into from
Apr 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% set layout_items %}
{% set banner %}
{% include '@bolt-components-banner/banner.twig' with {
content: 'This demo shows the usage of basic floating action buttons. In this particular case, a scroll to top button is utilized.',
content: 'This demo shows the usage of basic floating action buttons. In this particular case, a scroll to top button is utilized. Please note that the scroll to top button will not animate properly unless the demo is opened in a new page (outside the pattern-lab wrapper).',
align: 'start',
} only %}
{% endset %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% set layout_items %}
{% set banner %}
{% include '@bolt-components-banner/banner.twig' with {
content: 'This demo shows individual floating action buttons to show on scroll. Once the user scrolls past Article Title, the buttons appear.',
content: 'This demo shows individual floating action buttons to show on scroll. Once the user scrolls past Article Title, the buttons appear. Please note that the scroll to top button will not animate properly unless the demo is opened in a new page (outside the pattern-lab wrapper).',
align: 'start',
} only %}
{% endset %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% set layout_items %}
{% set banner %}
{% include '@bolt-components-banner/banner.twig' with {
content: 'This demo shows the usage of the toggle button. In this particular case, the toggle button is used to show more actions (a list of secondary action buttons).',
content: 'This demo shows the usage of the toggle button. In this particular case, the toggle button is used to show more actions (a list of secondary action buttons). Please note that the scroll to top button will not animate properly unless the demo is opened in a new page (outside the pattern-lab wrapper).',
align: 'start',
} only %}
{% endset %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% set layout_items %}
{% set banner %}
{% include '@bolt-components-banner/banner.twig' with {
content: 'This demo shows using offsets to further adjust the placement of FAB.',
content: 'This demo shows using offsets to further adjust the placement of FAB. Please note that the scroll to top button will not animate properly unless the demo is opened in a new page (outside the pattern-lab wrapper).',
align: 'start',
} only %}
{% endset %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% set notes %}
<bolt-ol>
<bolt-li>One or many action buttons can be used.</bolt-li>
<bolt-li>The most common use case is a &ldquo;back to top&rdquo; button.</bolt-li>
<bolt-li>The most common use case is a &ldquo;back to top&rdquo; button. Please note that the scroll to top button will not animate properly unless the demo is opened in a new page (outside the pattern-lab wrapper).</bolt-li>
<bolt-li>When using a <a href="link['viewall-elements-button']">Button element</a> as FAB, it is recommended to use an icon-only button with tooltip. Set <code>placement</code> of tooltip to <code>left</code> to avoid clashing with other buttons.</bolt-li>
</bolt-ol>
{% endset %}
Expand Down