diff --git a/core/lib/Drupal/Core/Layout/IconGenerator.php b/core/lib/Drupal/Core/Layout/IconGenerator.php index 6b5a2c2..1daa0b0 100644 --- a/core/lib/Drupal/Core/Layout/IconGenerator.php +++ b/core/lib/Drupal/Core/Layout/IconGenerator.php @@ -10,7 +10,7 @@ class IconGenerator implements IconGeneratorInterface { /** * {@inheritdoc} */ - public function generateSvgFromIconMap(array $icon_map, $width = 250, $height = 300, $stroke_width = 1, $padding = 3, $fill = 'lightgray', $stroke = 'black') { + public function generateSvgFromIconMap(array $icon_map, $width = 250, $height = 300, $stroke_width = 2, $padding = 5, $fill = 'lightgray', $stroke = 'black') { $build = [ '#type' => 'html_tag', '#tag' => 'svg', diff --git a/core/lib/Drupal/Core/Layout/IconGeneratorInterface.php b/core/lib/Drupal/Core/Layout/IconGeneratorInterface.php index 369b33f..711f8c9 100644 --- a/core/lib/Drupal/Core/Layout/IconGeneratorInterface.php +++ b/core/lib/Drupal/Core/Layout/IconGeneratorInterface.php @@ -47,6 +47,6 @@ * @return array * A render array representing a SVG icon. */ - public function generateSvgFromIconMap(array $icon_map, $width = 250, $height = 300, $stroke_width = 1, $padding = 3, $fill = 'lightgray', $stroke = 'black'); + public function generateSvgFromIconMap(array $icon_map, $width = 250, $height = 300, $stroke_width = 2, $padding = 5, $fill = 'lightgray', $stroke = 'black'); } diff --git a/core/tests/Drupal/KernelTests/Core/Layout/IconGeneratorTest.php b/core/tests/Drupal/KernelTests/Core/Layout/IconGeneratorTest.php index a5699e3..bc69478 100644 --- a/core/tests/Drupal/KernelTests/Core/Layout/IconGeneratorTest.php +++ b/core/tests/Drupal/KernelTests/Core/Layout/IconGeneratorTest.php @@ -19,7 +19,7 @@ class IconGeneratorTest extends KernelTestBase { */ public function testGenerateSvgFromIconMap($icon_map, $expected) { $renderer = $this->container->get('renderer'); - $icon_generator = new IconGenerator($renderer); + $icon_generator = new IconGenerator(); $build = $icon_generator->generateSvgFromIconMap($icon_map); $output = (string) $renderer->executeInRenderContext(new RenderContext(), function () use ($build, $renderer) { return $renderer->render($build);