Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

Commit

Permalink
Removed <div> to give users more control of style (#1) (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Jul 22, 2018
1 parent 792bfdf commit be4ea0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1
0.0.2
7 changes: 1 addition & 6 deletions text-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ class TextElement extends HTMLElement {
}
this.config = config;
const card = document.createElement('text-element');
this.content = document.createElement('div');
this.content.style.padding = '8px';
this.content.style.transform= 'none';
card.appendChild(this.content);
this.appendChild(card);
this.content.innerHTML = this.config.text;
this.innerHTML = this.config.text;
}
getCardSize() {
return 1;
Expand Down

0 comments on commit be4ea0f

Please sign in to comment.