Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/ui-badge/src/Badge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type: example
}}
>
<IconButton
renderIcon={IconUserSolid}
renderIcon={<UserRoundInstUIIcon />}
screenReaderLabel="Edits"
withBorder={false}
withBackground={false}
Expand All @@ -39,7 +39,7 @@ type: example
}}
>
<IconButton
renderIcon={IconUserSolid}
renderIcon={<UserRoundInstUIIcon />}
screenReaderLabel="Edits"
withBorder={false}
withBackground={false}
Expand Down Expand Up @@ -137,7 +137,7 @@ type: example
---
const EditButton = () => (
<IconButton
renderIcon={IconUserSolid}
renderIcon={<UserRoundInstUIIcon />}
screenReaderLabel="Edit page"
withBorder={false}
withBackground={false}
Expand Down
5 changes: 2 additions & 3 deletions packages/ui-badge/src/Badge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ import {
withDeterministicId
} from '@instructure/ui-react-utils'

import { withStyleRework as withStyle } from '@instructure/emotion'
import { withStyle } from '@instructure/emotion'

import generateStyle from './styles'
import generateComponentTheme from './theme'

import { allowedProps } from './props'
import type { BadgeProps } from './props'
Expand All @@ -44,7 +43,7 @@ category: components
---
**/
@withDeterministicId()
@withStyle(generateStyle, generateComponentTheme)
@withStyle(generateStyle)
class Badge extends Component<BadgeProps> {
static readonly componentId = 'Badge'

Expand Down
4 changes: 2 additions & 2 deletions packages/ui-badge/src/Badge/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import { keyframes } from '@instructure/emotion'

import type { BadgeTheme } from '@instructure/shared-types'
import type { NewComponentTypes } from '@instructure/ui-themes'
import type { BadgeProps, BadgeStyle } from './props'

// keyframes have to be outside of 'generateStyle',
Expand All @@ -46,7 +46,7 @@ const pulseAnimation = keyframes`
* @return {Object} The final style object, which will be used in the component
*/
const generateStyle = (
componentTheme: BadgeTheme,
componentTheme: NewComponentTypes['Badge'],
props: BadgeProps
): BadgeStyle => {
const { type, variant, placement = '', standalone, pulse } = props
Expand Down
74 changes: 0 additions & 74 deletions packages/ui-badge/src/Badge/theme.ts

This file was deleted.

Loading