adopted-ember-addons / adopted-ember-addons/ember-collection

Inline style on cell violates csp

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

説明

```
// addon/components/ember-collection/template.hbs
...
{{~#each _cells as |cell|~}}

{{yield cell.item cell.index }}

{{~/each~}}
...
```

What's a good way to apply the style using js? I've done this successfully in [ember-cli-csp-style](https://www.npmjs.com/package/ember-cli-csp-style) but that only works on the root element. Can't use a helper as it doesn't know its target context.

Happy to write a PR for this if someone more familiar with Glimmer can hint at a good way to solve.

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

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

評価

この issue はまだ評価されていません。

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

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