Skip to content

Commit 2611cad

Browse files
Tom Bertrandglambert
andauthored
Fix clip-rule warning by converting the svg property into a React format of clipRule (#161)
* Fix clip-rule warning by converting the svg property into a React format of clipRule * Add changelog * Update packages/flame/CHANGELOG.md Co-authored-by: Guillaume Lambert <[email protected]> Co-authored-by: Guillaume Lambert <[email protected]>
1 parent 6f459bb commit 2611cad

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

packages/flame/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
Refer to the [CONTRIBUTING guide](https://github.com/lightspeed/flame/blob/master/.github/CONTRIBUTING.md) for more info.
99

10+
## [Unreleased]
11+
12+
### Fixed
13+
14+
- Fix clip-rule warning by converting the svg property into a React format of clipRule ([#161](https://github.com/lightspeed/flame/pull/161))
15+
1016
## 2.3.1 - 2022-03-04
1117

1218
### Added

packages/flame/scripts/generate-icons.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export { NextIcon as Icon${componentIconName} };`;
8989
.replace(/<\/?svg(?:\s.+?)?>/g, '')
9090
.replace(/id="((base|details)-\d)"/g, 'style="fill: var(--cr-icon-$1-fill)"')
9191
.replace(/fill-rule=/g, 'fillRule=')
92+
.replace(/clip-rule=/g, 'clipRule=')
9293
.replace(/<g.*?>/, `<symbol id="cr-icon-${iconName}">`)
9394
.replace(/<\/g>(?!.*<\/g>)/, '</symbol>')
9495
.trim(),

0 commit comments

Comments
 (0)