@instructure/ui-options 8.18.0 → 8.18.1-snapshot.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,7 +25,7 @@
25
25
  /** @jsx jsx */
26
26
  import { Component } from 'react'
27
27
 
28
- import { getElementType } from '@instructure/ui-react-utils'
28
+ import { getElementType, omitProps } from '@instructure/ui-react-utils'
29
29
 
30
30
  import { withStyle, jsx } from '@instructure/emotion'
31
31
 
@@ -62,12 +62,18 @@ class Separator extends Component<OptionsSeparatorProps> {
62
62
  }
63
63
 
64
64
  render() {
65
- const { as, styles, makeStyles, ...rest } = this.props
65
+ const { as, styles, ...rest } = this.props
66
+
66
67
  const ElementType = getElementType(Separator, this.props, () => as!)
67
68
 
68
69
  return (
69
70
  <ElementType role="none">
70
- <div {...rest} css={styles?.separator} role="presentation" />
71
+ <div
72
+ // we need to omit the withStyle props
73
+ {...omitProps(rest, ['styles', 'makeStyles', 'themeOverride'])}
74
+ css={styles?.separator}
75
+ role="presentation"
76
+ />
71
77
  </ElementType>
72
78
  )
73
79
  }