mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Fix not picking up font style / variant in new renderer
This commit is contained in:
@@ -520,7 +520,6 @@ export function createRootFromHTML(html, style) {
|
||||
const fragment = mapContentFragmentFromHTML(html, style);
|
||||
const root = createRoot([], style);
|
||||
root.replaceChildren(fragment);
|
||||
console.log("ROOT", root);
|
||||
return root;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ export function createRandomId() {
|
||||
* @returns {HTMLElement}
|
||||
*/
|
||||
export function createElement(tag, options) {
|
||||
console.log("createElement", options);
|
||||
const element = document.createElement(tag);
|
||||
if (options?.attributes) {
|
||||
Object.entries(options.attributes).forEach(([name, value]) =>
|
||||
|
||||
Reference in New Issue
Block a user