diff --git a/src/components/atoms/OffcanvasBody/OffcanvasBody.css b/src/components/atoms/OffcanvasBody/OffcanvasBody.css index ffbc50a6..a736cc5a 100644 --- a/src/components/atoms/OffcanvasBody/OffcanvasBody.css +++ b/src/components/atoms/OffcanvasBody/OffcanvasBody.css @@ -1,3 +1,7 @@ +:host(:not([data-expand])) { + overflow-y: auto; +} + .navbar-expand-xs.offcanvas-body { display: flex; flex-grow: 0; diff --git a/src/components/atoms/OffcanvasBody/OffcanvasBody.css.map b/src/components/atoms/OffcanvasBody/OffcanvasBody.css.map index b7eab7fb..383ac0de 100644 --- a/src/components/atoms/OffcanvasBody/OffcanvasBody.css.map +++ b/src/components/atoms/OffcanvasBody/OffcanvasBody.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["OffcanvasBody.scss","../../../../node_modules/bootstrap/scss/mixins/_breakpoints.scss"],"names":[],"mappings":"AAMI;EACE;EACA;EACA;EACA;;;ACqDF;EDzDA;IACE;IACA;IACA;IACA;;;ACqDF;EDzDA;IACE;IACA;IACA;IACA;;;ACqDF;EDzDA;IACE;IACA;IACA;IACA;;;ACqDF;EDzDA;IACE;IACA;IACA;IACA;;;ACqDF;EDzDA;IACE;IACA;IACA;IACA","file":"OffcanvasBody.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["OffcanvasBody.scss","../../../../node_modules/bootstrap/scss/mixins/_breakpoints.scss"],"names":[],"mappings":"AAIA;EACE;;;AAKE;EACE;EACA;EACA;EACA;;;ACiDF;EDrDA;IACE;IACA;IACA;IACA;;;ACiDF;EDrDA;IACE;IACA;IACA;IACA;;;ACiDF;EDrDA;IACE;IACA;IACA;IACA;;;ACiDF;EDrDA;IACE;IACA;IACA;IACA;;;ACiDF;EDrDA;IACE;IACA;IACA;IACA","file":"OffcanvasBody.css"} \ No newline at end of file diff --git a/src/components/atoms/OffcanvasBody/OffcanvasBody.scss b/src/components/atoms/OffcanvasBody/OffcanvasBody.scss index 1569348b..ee45aeb0 100644 --- a/src/components/atoms/OffcanvasBody/OffcanvasBody.scss +++ b/src/components/atoms/OffcanvasBody/OffcanvasBody.scss @@ -2,6 +2,10 @@ @import 'bootstrap/scss/variables'; @import 'bootstrap/scss/mixins/breakpoints'; +:host(:not([data-expand])) { + overflow-y: auto; +} + @each $breakpoint-name, $_ in $grid-breakpoints { @include media-breakpoint-up($breakpoint-name) { .navbar-expand-#{$breakpoint-name}.offcanvas-body { diff --git a/src/stories/offcanvas.stories.js b/src/stories/offcanvas.stories.js index 26f9b7bb..8243fa13 100644 --- a/src/stories/offcanvas.stories.js +++ b/src/stories/offcanvas.stories.js @@ -74,8 +74,51 @@ export const Basic = () => html`

Some text as placeholder. In real life you can have the elements you - have chosen. Like, text, images, lists, etc. + have chosen. Like, text, images, lists, etc. Here's an example of a very + long list.

+
    +
  1. 1
  2. +
  3. 2
  4. +
  5. 3
  6. +
  7. 4
  8. +
  9. 5
  10. +
  11. 6
  12. +
  13. 7
  14. +
  15. 8
  16. +
  17. 9
  18. +
  19. 10
  20. +
  21. 11
  22. +
  23. 12
  24. +
  25. 13
  26. +
  27. 14
  28. +
  29. 15
  30. +
  31. 16
  32. +
  33. 17
  34. +
  35. 18
  36. +
  37. 19
  38. +
  39. 20
  40. +
  41. 21
  42. +
  43. 22
  44. +
  45. 23
  46. +
  47. 24
  48. +
  49. 25
  50. +
  51. 26
  52. +
  53. 27
  54. +
  55. 28
  56. +
  57. 29
  58. +
  59. 30
  60. +
  61. 31
  62. +
  63. 32
  64. +
  65. 33
  66. +
  67. 34
  68. +
  69. 35
  70. +
  71. 36
  72. +
  73. 37
  74. +
  75. 38
  76. +
  77. 39
  78. +
  79. 40
  80. +
`;