Skip to content

Commit

Permalink
fix: changed className
Browse files Browse the repository at this point in the history
  • Loading branch information
illionillion committed Nov 4, 2023
1 parent 749b2ca commit f0de5cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/tidy-poems-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@yamada-ui/link': patch
---

Changed `className` in `Link`.
6 changes: 3 additions & 3 deletions packages/components/link/src/linkBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const LinkOverlay = forwardRef<LinkOverlayProps, 'a'>(
ref={ref}
target={isExternal ? '_blank' : target}
rel={isExternal ? 'noopener' : rel}
className={cx('ui-link-overlay', className)}
className={cx('ui-link__overlay', className)}
href={href}
__css={css}
{...rest}
Expand All @@ -59,7 +59,7 @@ export const LinkBox = forwardRef<LinkBoxProps, 'div'>((props, ref) => {
const { className, children, ...rest } = omitThemeProps(mergedProps)

const css: CSSUIObject = {
'a[href]:not(.ui-link-overlay), abbr[title]': {
'a[href]:not(.ui-link__overlay), abbr[title]': {
position: 'relative',
zIndex: 'yamcha',
},
Expand All @@ -69,7 +69,7 @@ export const LinkBox = forwardRef<LinkBoxProps, 'div'>((props, ref) => {
return (
<ui.div
ref={ref}
className={cx('ui-link-box', className)}
className={cx('ui-link__box', className)}
__css={css}
position='relative'
{...rest}
Expand Down

0 comments on commit f0de5cd

Please sign in to comment.