🐞 fix: Add parameters for icon sizing

This commit is contained in:
Keith Solomon
2026-07-05 16:39:26 -05:00
parent 5e08b78d62
commit 6c78d23512
2 changed files with 12 additions and 2 deletions
+6 -1
View File
@@ -1,4 +1,9 @@
<svg width="11" height="19" viewBox="0 0 11 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<?php
$width = $args['width'] ?? '11';
$height = $args['height'] ?? '19';
?>
<svg width="<?php echo esc_attr( $width ); ?>" height="<?php echo esc_attr( $height ); ?>" viewBox="0 0 11 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>Next</title>
<path d="M1.5 17.5L9.5 9.5L1.5 1.5" stroke="#F26B53" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

Before

Width:  |  Height:  |  Size: 250 B

After

Width:  |  Height:  |  Size: 392 B

+6 -1
View File
@@ -1,4 +1,9 @@
<svg width="11" height="19" viewBox="0 0 11 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<?php
$width = $args['width'] ?? '11';
$height = $args['height'] ?? '19';
?>
<svg width="<?php echo esc_attr( $width ); ?>" height="<?php echo esc_attr( $height ); ?>" viewBox="0 0 11 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>Previous</title>
<path d="M9.5 1.5L1.5 9.5L9.5 17.5" stroke="#F26B53" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

Before

Width:  |  Height:  |  Size: 254 B

After

Width:  |  Height:  |  Size: 396 B