shipshapecode / shipshapecode/angular-shepherd
Scrolling during a tour is buggy if height is set to 100% on body and html
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 238
- フォーク
- 50
- 平均マージ
- 1分
- マージ済み PR(30日)
- 9
説明
If you style your Angular app's "body" and "html" tags with "height: 100%" and then start a tour, scrolling will partially work (just as the demo "shepherd-tester" in the repo), but if you scroll up and down a bit, scrolling will suddenly stop working and you might get stuck with the tour modal out of view.
So if you have
body, html {
height: 100%;
}
in your styles.css, and want to use Angular Shepherd without the buggy scroll behavior, you need to find another way to make your app have full width/height with regards to the browser window.
One workaround that seems to work for me so far is:
styles.css
html, body {
min-height: 100vh;
margin: 0;
}
body {
display: flex;
}
app.component.css
:host {
flex: 1;
}
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
html と body height: 100% を使ってリポジトリの shepherd-tester デモで問題を再現し、その後、tour のスクロール動作を調査します。報告された CSS workaround に頼らず、繰り返しスクロールしても tour modal にアクセスでき、modal が画面外に出た状態で停止しなければ作業完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100