Skip to content

Commit

Permalink
style: ensure legacy indicators align with Vue indicators (#7458)
Browse files Browse the repository at this point in the history
* style: ensure legacy indicators align with Vue indicators

* fix: move logic to `vueWrapHtmlElement` and use `u-contents` class
  • Loading branch information
ozyx authored Feb 15, 2024
1 parent 4fbccd4 commit 847232d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/vueWrapHtmlElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export default function vueWrapHtmlElement(element) {
});

// Render function returning the wrapper div
return () => h('div', { ref: wrapper });
// Use class 'u-contents' to set 'display: contents' of the parent div
return () => h('div', { ref: wrapper, class: 'u-contents' });
}
});
}

0 comments on commit 847232d

Please sign in to comment.