Skip to content

Commit

Permalink
fix: Adapt spelling of gradient macros to other svg macros
Browse files Browse the repository at this point in the history
This is a breaking change!
  • Loading branch information
klemens committed May 9, 2020
1 parent 0674789 commit a418702
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changelog
[unreleased]
- [BREAKING] Rename `linear_gradient!` to `linearGradient!` for consistency with the other svg macros (same with `radial_gradient!` and `mesh_gradient!`).

## v0.7.0
- [BREAKING] Custom elements are now patched in-place (#364). Use `el_key` to force reinitialize an element.
Expand Down
2 changes: 1 addition & 1 deletion src/shortcuts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ element_svg! {
// missing-glyph => MissingGlyph; // todo unable to populate with macro due to hyphen
pattern => Pattern; svg => Svg; switch => Switch; symbol => Symbol; unknown => Unknown;
// SVG gradient elements
linear_gradient => LinearGradient; radial_gradient => RadialGradient; mesh_gradient => MeshGradient;
linearGradient => LinearGradient; radialGradient => RadialGradient; meshGradient => MeshGradient;
stop => Stop;
// SVG graphics elements
image => Image;
Expand Down

0 comments on commit a418702

Please # to comment.