Skip to content

Commit

Permalink
fix(contextual-help): change to use IconButton instance of Button (#1968
Browse files Browse the repository at this point in the history
)
  • Loading branch information
matheusps authored Sep 24, 2024
2 parents 4051aa3 + 021ce96 commit 092e1dc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { ComponentPropsWithoutRef, ReactNode } from 'react'
import { forwardRef } from 'react'
import type { PopoverProviderProps } from '../popover'
import { PopoverProvider, PopoverTrigger, Popover } from '../popover'
import { Button } from '../button'
import { IconButton } from '../icon-button'
import { Container, Content } from '../content'

/**
Expand Down Expand Up @@ -38,9 +38,9 @@ export const ContextualHelp = forwardRef<HTMLDivElement, ContextualHelpProps>(
placement={placement}
>
<PopoverTrigger asChild>
<Button data-sl-contextual-help-trigger aria-label={label}>
<IconButton data-sl-contextual-help-trigger label={label}>
<div data-sl-contextual-help-trigger-bg>?</div>
</Button>
</IconButton>
</PopoverTrigger>
<Popover
data-sl-contextual-help-popover
Expand Down

0 comments on commit 092e1dc

Please sign in to comment.