-
Notifications
You must be signed in to change notification settings - Fork 208
fix: some built-in components will now get the right props as CSS #246
Conversation
500b2cd
to
5ff0b06
Compare
284e20c
to
0a693fe
Compare
Codecov Report
@@ Coverage Diff @@
## master #246 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 10 10
Lines 142 144 +2
Branches 36 37 +1
=====================================
+ Hits 142 144 +2
Continue to review full report at Codecov.
|
6d29fb3
to
646b9fc
Compare
646b9fc
to
878819d
Compare
@@ -28,7 +29,15 @@ const isCustomAttribute = RegExp.prototype.test.bind( | |||
new RegExp(`^(data|aria)-[${ATTRIBUTE_NAME_CHAR}]*$`), | |||
) | |||
|
|||
const isSvgTag = tagName => supportedSVGTagNames.indexOf(tagName) !== -1 | |||
const isSvgTag = tagName => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's the change that fixes the bug.
@@ -166,37 +166,15 @@ test('style objects can be arrays and glamor will merge those', () => { | |||
const phoneMediaQuery = '@media (max-width: 640px)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reformatting changes only
@@ -80,6 +80,7 @@ | |||
"rollup-plugin-uglify": "^2.0.1", | |||
"tslint": "^5.4.3", | |||
"tslint-microsoft-contrib": "^5.0.0", | |||
"tsutils": "^1.9.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were getting peerDep warnings
What: This adds a check for whether the given
tagName
is an html tag before saying it's svgWhy: closes #245
How: See the code. Also prettier 😒
Checklist: