Skip to content

Commit

Permalink
Merge pull request #2481 from boltdesignsystem/feature/DS-540-scroll-…
Browse files Browse the repository at this point in the history
…top-demo

DS-540: scroll to top demo warning
  • Loading branch information
colbytcook committed Apr 18, 2022
2 parents 6eb67f5 + 1a3276a commit a518cfb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
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

0 comments on commit a518cfb

Please sign in to comment.