From 021f64919134696d4202c46282097613096e7e70 Mon Sep 17 00:00:00 2001 From: WebVPF <61043464+WebVPF@users.noreply.github.com> Date: Sun, 29 Jun 2025 09:59:42 +0300 Subject: [PATCH 1/2] Clarified description for iconSvg option in Navigation menus --- plugin/registration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/registration.md b/plugin/registration.md index 497ea69d..c999f7e7 100644 --- a/plugin/registration.md +++ b/plugin/registration.md @@ -389,7 +389,7 @@ Key | Description ------------- | ------------- `label` | specifies the menu label localization string key, required. `icon` | an icon name from the [Winter CMS icon collection](/docs/v1.2/ui/style/icon), optional. -`iconSvg` | an SVG icon to be used in place of the standard icon, the SVG icon should be a rectangle and can support colors, optional. +`iconSvg` | an image icon (svg, webp, png, jpg) to be used in place of the standard icon, the image icon should be a square and can support colors, optional. `url` | the URL the menu item should point to (ex. `Backend::url('author/plugin/controller/action')`, required. `counter` | a numeric value to output near the menu icon. The value should be a number or a callable returning a number, optional. `counterLabel` | a string value to describe the numeric reference in counter, optional. From 37a4f8998016289921281bc9182d396297a81fd9 Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Sun, 29 Jun 2025 07:30:20 -0600 Subject: [PATCH 2/2] Update plugin/registration.md --- plugin/registration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/registration.md b/plugin/registration.md index c999f7e7..97f542e3 100644 --- a/plugin/registration.md +++ b/plugin/registration.md @@ -389,7 +389,7 @@ Key | Description ------------- | ------------- `label` | specifies the menu label localization string key, required. `icon` | an icon name from the [Winter CMS icon collection](/docs/v1.2/ui/style/icon), optional. -`iconSvg` | an image icon (svg, webp, png, jpg) to be used in place of the standard icon, the image icon should be a square and can support colors, optional. +`iconSvg` | an image icon (svg, webp, png, jpg) to be used in place of the standard icon, the image icon should be a square and can support colors, optional. The value will be passed to `Url::asset()` before rendering. `url` | the URL the menu item should point to (ex. `Backend::url('author/plugin/controller/action')`, required. `counter` | a numeric value to output near the menu icon. The value should be a number or a callable returning a number, optional. `counterLabel` | a string value to describe the numeric reference in counter, optional.