Skip to content

Commit

Permalink
feat(addon/components/paper-card-title-media): migrates to tagless na…
Browse files Browse the repository at this point in the history
…tive class.
  • Loading branch information
matthewhartstonge committed Oct 18, 2024
1 parent 721e4ce commit c6994cd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
17 changes: 9 additions & 8 deletions addon/components/paper-card-title-media.hbs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{{! template-lint-disable no-implicit-this }}
{{#if (has-block)}}
<div class="md-media-{{size}}">
{{yield}}
</div>
{{else}}
<img class="md-media-{{size}}" src={{src}} alt={{alt}} title={{title}}>
{{/if}}
<md-card-title-media ...attributes>
{{#if (has-block)}}
<div class="md-media-{{this.size}}">
{{yield}}
</div>
{{else}}
<img class="md-media-{{this.size}}" src={{@src}} alt={{@alt}} title={{@title}}>
{{/if}}
</md-card-title-media>
10 changes: 5 additions & 5 deletions addon/components/paper-card-title-media.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 */
/* eslint-disable ember/no-classic-components */
/**
* @module ember-paper
*/
Expand All @@ -8,7 +8,7 @@ import Component from '@ember/component';
* @class PaperCardTitleMedia
* @extends Ember.Component
*/
export default Component.extend({
tagName: 'md-card-title-media',
size: 'md',
});
export default class PaperCardTitleMedia extends Component {
tagName = '';
size = 'md';
}

0 comments on commit c6994cd

Please sign in to comment.