ember-learn / ember-learn/ember-cli-addon-docs

Styles don't play nice with disabled application-template-wrapper

オープン
#422 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
172
フォーク
142
PR マージ指標
30日以内にマージされた PR はありません

説明

When using addon-docs on an app with `application-template-wrapper` set to `false` (which is default in octane), the app styles don't work well. See below:

https://github.com/ember-learn/ember-cli-addon-docs/blob/75742729ec9443e653ad9383c0fbdafb1b404ef0/addon/styles/addon.scss#L51-L58

Screen Shot 2019-11-01 at 3 02 55 PM

This is simple to fix, but it would be better to not break for these cases.
The fix is just wrapping the content of application.hbs with a `div` with classes `ember-view`:

```hbs


{{outlet}}


```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

addon/styles/addon.scss の 51-58 行目とアプリケーションの application.hbs テンプレートを調査してください。application-template-wrapper が false の場合にスタイルがどのように動作するかを確認し、そのうえでテンプレート構造に要求された ember-view ラッパーが含まれていること、およびその構成でアプリのスタイルが機能することを確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
frontend
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。