From 385bcc790d31fd9735235d8eb3b97f1610d6c987 Mon Sep 17 00:00:00 2001 From: Matthew Hartstonge Date: Thu, 17 Oct 2024 14:00:50 +1300 Subject: [PATCH] feat(addon/components/paper-card-header-title): migrates to tagless native class. --- addon/components/paper-card-header-title.hbs | 3 +++ addon/components/paper-card-header-title.js | 9 ++++----- 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 addon/components/paper-card-header-title.hbs diff --git a/addon/components/paper-card-header-title.hbs b/addon/components/paper-card-header-title.hbs new file mode 100644 index 000000000..c401946fc --- /dev/null +++ b/addon/components/paper-card-header-title.hbs @@ -0,0 +1,3 @@ + + {{yield}} + \ No newline at end of file diff --git a/addon/components/paper-card-header-title.js b/addon/components/paper-card-header-title.js index 0904da8ee..c905b7dec 100644 --- a/addon/components/paper-card-header-title.js +++ b/addon/components/paper-card-header-title.js @@ -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 */ @@ -8,7 +8,6 @@ import Component from '@ember/component'; * @class PaperCardHeaderTitle * @extends Ember.Component */ -export default Component.extend({ - tagName: 'span', - classNames: ['md-title'] -}); +export default class PaperCardHeaderTitle extends Component { + tagName = ''; +}