-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove some underscores in icon-related classes #6583
Changes from 3 commits
86ef799
43198da
a60dd5d
52a62e9
f2d6504
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,7 +175,7 @@ export abstract class Icon { | |
* | ||
* @param _group The icon group. | ||
*/ | ||
protected drawIcon_(_group: Element) {} | ||
protected drawIcon_(_group: SVGGElement) {} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we allow developers to create their own icon classes and pass them to our code? I don't think so, but I'm not 100% if so then this might be too restrictive if they would otherwise be able to pass e.g. a div with an image tag or something. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point. I don't think that we do, but it is technically a breaking change so I'll put it back. |
||
// No-op on base class. | ||
|
||
/** | ||
|
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.
in the interest of type safety I think it'd be reasonable to add a
if (!this.foreignObject || !this.textarea_) return;
at the top and cut out the non-null assertionsThere 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.
Done.