Skip to content

Commit

Permalink
chore(css): add a class to the div wrapping a card
Browse files Browse the repository at this point in the history
Allows easier targeting of the div for styling by the consumer.
  • Loading branch information
chrisgame committed Jul 11, 2019
1 parent 35bfb25 commit cf71a12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addon/components/mobiledoc-editor/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export default Component.extend({
let destinationElementId = `mobiledoc-editor-card-${cardId}`;
let element = document.createElement('div');
element.id = destinationElementId;
element.className = 'mobiledoc-editor__card-wrapper';

// The data must be copied to avoid sharing the reference
payload = copy(payload, true);
Expand Down

0 comments on commit cf71a12

Please sign in to comment.