diff --git a/example-figma-files/gov-uk-design-system-components/button.html b/example-figma-files/gov-uk-design-system-components/button.html index 8f2f616..dce3e83 100644 --- a/example-figma-files/gov-uk-design-system-components/button.html +++ b/example-figma-files/gov-uk-design-system-components/button.html @@ -156,9 +156,9 @@ " data-figma-name="Icon: Vector" data-figma-id="184:54" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - + @@ -280,9 +280,9 @@ " data-figma-name="Icon: Vector" data-figma-id="184:56" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - + @@ -408,9 +408,9 @@ " data-figma-name="Icon: Vector" data-figma-id="184:58" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - + @@ -529,9 +529,9 @@ " data-figma-name="Icon: Vector" data-figma-id="184:60" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - + @@ -657,9 +657,9 @@ " data-figma-name="Icon: Vector" data-figma-id="213:67" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - + @@ -786,9 +786,9 @@ " data-figma-name="Icon: Vector" data-figma-id="30182:12490" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - + @@ -915,9 +915,9 @@ " data-figma-name="Icon: Vector" data-figma-id="30182:12532" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - + @@ -1048,9 +1048,9 @@ " data-figma-name="Icon: Vector" data-figma-id="30197:12544" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - + @@ -1177,9 +1177,9 @@ " data-figma-name="Icon: Vector" data-figma-id="30208:12554" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - + @@ -1310,9 +1310,9 @@ " data-figma-name="Icon: Vector" data-figma-id="30208:12564" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - + diff --git a/example-figma-files/gov-uk-design-system-components/footer.html b/example-figma-files/gov-uk-design-system-components/footer.html index 08c2795..cb2f12d 100644 --- a/example-figma-files/gov-uk-design-system-components/footer.html +++ b/example-figma-files/gov-uk-design-system-components/footer.html @@ -107,9 +107,9 @@ " data-figma-name="Icon: Vector" data-figma-id="19792:14158" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
@@ -1156,9 +1156,9 @@ " data-figma-name="Icon: Vector" data-figma-id="19792:14349" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
@@ -2537,9 +2537,9 @@ " data-figma-name="Icon: Vector" data-figma-id="19792:13964" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
@@ -4029,9 +4029,9 @@ " data-figma-name="Icon: Vector" data-figma-id="18774:13852" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
diff --git a/example-figma-files/gov-uk-design-system-components/header.html b/example-figma-files/gov-uk-design-system-components/header.html index 60448bb..cd8335a 100644 --- a/example-figma-files/gov-uk-design-system-components/header.html +++ b/example-figma-files/gov-uk-design-system-components/header.html @@ -102,9 +102,9 @@ style="fill: var(--Other-White); height: 26px; width: 36px" data-figma-name="Icon: Crown" data-figma-id="I20226:12382;18169:11284;15088:6073" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - +
- +
- +
- +
@@ -639,9 +639,9 @@ style="fill: var(--Other-White); height: 26px; width: 36px" data-figma-name="Icon: Crown" data-figma-id="I20226:11941;18169:11284;15088:6073" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - +
- +
@@ -922,9 +922,9 @@ style="fill: var(--Other-White); height: 26px; width: 36px" data-figma-name="Icon: Crown" data-figma-id="I20226:12396;18169:11284;15088:6073" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - +
- +
- +
- +
@@ -1423,9 +1423,9 @@ style="fill: var(--Other-White); height: 26px; width: 36px" data-figma-name="Icon: Crown" data-figma-id="I20226:11978;18169:11284;15088:6073" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - +
- +
@@ -1694,9 +1694,9 @@ style="fill: var(--Other-White); height: 26px; width: 36px" data-figma-name="Icon: Crown" data-figma-id="I20226:12368;18169:11284;15088:6073" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - +
- +
- +
- +
@@ -2675,9 +2675,9 @@ style="fill: var(--Other-White); height: 26px; width: 36px" data-figma-name="Icon: Crown" data-figma-id="I20226:11917;18169:11284;15088:6073" - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" > - +
- +
diff --git a/src/to_html/mod.rs b/src/to_html/mod.rs index 5fc4262..6efb286 100644 --- a/src/to_html/mod.rs +++ b/src/to_html/mod.rs @@ -93,10 +93,9 @@ fn node_to_html(node: &Node, parent: Option<&Node>, css_variables: &mut CSSVaria style?=style.as_deref(), data-figma-name=&node.name, data-figma-id=&node.id, - viewBox="0 0 100 100" + viewBox="-5 -81 100 100" ) { text( - y=".9em", font-size="90" ) { : "�"