Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/04-plugins/addClassesToSVGElement.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ svgo:
description: Adds the specified class name to the outer most `<svg>` element. If `classNames` is specified, this is ignored.
---

Overrides the `class` attribute in the outer most `<svg>` element, omitting duplicates or null classes if found in your configuration.
Adds the configured class names to the outer most `<svg>` element, omitting duplicates or null classes if found in your configuration.

:::caution

If there is no `class` attribute to begin with, it will be added. However, if the there were already classes assigned, these are removed and replaced with the classes configured in this plugin.
If there is no `class` attribute to begin with, it will be added. If the element already has classes, the ones from your configuration are added alongside the existing ones rather than replacing them.

:::

Expand Down