diff --git a/docs/components/icon.md b/docs/components/icon.md index 765d40969..cdd65f867 100644 --- a/docs/components/icon.md +++ b/docs/components/icon.md @@ -385,7 +385,7 @@ Icons in this library are licensed under the [Apache 2.0 License](https://github ### Remix Icon -This will register the [Remix Icon](https://remixicon.com/) library using the jsDelivr CDN. This library has two variations: line (default) and fill (`*-fill`). It also groups icons by categories, so the name must include the category and icon separated by a slash. A mutator function is required to set the SVG's `fill` to `currentColor`. +This will register the [Remix Icon](https://remixicon.com/) library using the jsDelivr CDN. This library groups icons by categories, so the name must include the category and icon separated by a slash, as well as the `-line` or `-fill` suffix as needed. A mutator function is required to set the SVG's `fill` to `currentColor`. Icons in this library are licensed under the [Apache 2.0 License](https://github.com/Remix-Design/RemixIcon/blob/master/License). @@ -395,21 +395,21 @@ Icons in this library are licensed under the [Apache 2.0 License](https://github registerIconLibrary('remixicon', { resolver: name => { - const match = name.match(/^(.*?)\/(.*?)(-(fill))?$/); + const match = name.match(/^(.*?)\/(.*?)?$/); match[1] = match[1].charAt(0).toUpperCase() + match[1].slice(1); - return `https://cdn.jsdelivr.net/npm/remixicon@2.5.0/icons/${match[1]}/${match[2]}${match[3] || '-line'}.svg`; + return `https://cdn.jsdelivr.net/npm/remixicon@2.5.0/icons/${match[1]}/${match[2]}.svg`; }, mutator: svg => svg.setAttribute('fill', 'currentColor') });