diff --git a/packages/ui-color-picker/src/ColorPicker/index.tsx b/packages/ui-color-picker/src/ColorPicker/index.tsx index 7bcdba22ea..9a450c5de1 100644 --- a/packages/ui-color-picker/src/ColorPicker/index.tsx +++ b/packages/ui-color-picker/src/ColorPicker/index.tsx @@ -26,7 +26,7 @@ /** @jsxFrag React.Fragment */ import React, { Component } from 'react' -import { withStyle, jsx } from '@instructure/emotion' +import { withStyle, jsx, InstUISettingsProvider } from '@instructure/emotion' import { warn, error } from '@instructure/console' import { omitProps } from '@instructure/ui-react-utils' import { testable } from '@instructure/ui-testable' @@ -389,9 +389,19 @@ class ColorPicker extends Component { {label} - - - + + {tooltip}}> + + + ) : ( diff --git a/packages/ui-svg-images/src/InlineSVG/index.tsx b/packages/ui-svg-images/src/InlineSVG/index.tsx index c889436ee9..0014a74f18 100644 --- a/packages/ui-svg-images/src/InlineSVG/index.tsx +++ b/packages/ui-svg-images/src/InlineSVG/index.tsx @@ -116,14 +116,14 @@ class InlineSVG extends Component { } get labelledBy() { - const ids = [] + const ids: string[] = [] if (this.props.title) { - ids.push(this.titleId) + ids.push(this.titleId as string) } if (this.props.description) { - ids.push(this.descId) + ids.push(this.descId as string) } return ids.length > 0 ? ids.join(' ') : undefined @@ -150,7 +150,6 @@ class InlineSVG extends Component { title, description, focusable, - children, src, styles, ...props