Skip to content

Commit

Permalink
naturalBackgroundDensity should never be i18n-ed
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Sep 6, 2024
1 parent 67df53b commit b020154
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions projects/natural/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"mode",
"naturalCustomCss",
"naturalIcon",
"naturalBackgroundDensity",
"naturalSrcDensity",
"panelWidth",
"srcset",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ import {NaturalBackgroundDensityDirective} from './background-density.directive'
@Component({
template: `
<div naturalBackgroundDensity></div>
<div naturalBackgroundDensity="https://example.com/api/image/123/200" i18n-naturalBackgroundDensity></div>
<div naturalBackgroundDensity="https://example.com/api/image/123/200"></div>
<div [naturalBackgroundDensity]="'https://example.com/api/image/123/200'"></div>
<div [naturalBackgroundDensity]="'https://example.com/api/image/123.jpg'"></div>
<div
style="color: red; background-image: url('foo.jpg');"
naturalBackgroundDensity="https://example.com/api/image/123/200" i18n-naturalBackgroundDensity
naturalBackgroundDensity="https://example.com/api/image/123/200"
></div>
<div
style="color: red; background-image: url('foo.jpg');"
naturalBackgroundDensity="https://example.com/api/image/123.jpg" i18n-naturalBackgroundDensity
naturalBackgroundDensity="https://example.com/api/image/123.jpg"
></div>
<div naturalBackgroundDensity="https://example.com/api/image/123/201" i18n-naturalBackgroundDensity></div>
<div naturalBackgroundDensity="url(data:image/png;base64,aabbcc)" i18n-naturalBackgroundDensity></div>
<div naturalBackgroundDensity="https://example.com/api/image/123/201"></div>
<div naturalBackgroundDensity="url(data:image/png;base64,aabbcc)"></div>
`,
standalone: true,
imports: [NaturalBackgroundDensityDirective],
Expand Down

0 comments on commit b020154

Please sign in to comment.