Skip to content

Commit

Permalink
feat(addon/components/paper-card-image): migrates to tagless native c…
Browse files Browse the repository at this point in the history
…lass.
  • Loading branch information
matthewhartstonge committed Oct 29, 2024
1 parent 5d5932b commit 1dd71e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions addon/components/paper-card-image.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<img class="md-card-image" alt={{@alt}} src={{@src}} title={{@title}} ...attributes>
10 changes: 4 additions & 6 deletions addon/components/paper-card-image.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable ember/no-classic-components, ember/require-tagless-components, prettier/prettier */
/* eslint-disable ember/no-classic-components */
/**
* @module ember-paper
*/
Expand All @@ -8,8 +8,6 @@ import Component from '@ember/component';
* @class PaperCardImage
* @extends Ember.Component
*/
export default Component.extend({
tagName: 'img',
classNames: ['md-card-image'],
attributeBindings: ['src', 'title', 'alt']
});
export default class PaperCardImage extends Component {
tagName = '';
}

0 comments on commit 1dd71e0

Please sign in to comment.