tamagui icon indicating copy to clipboard operation
tamagui copied to clipboard

[bug] Can't style composable parts, such as `Dialog.Title`

Open nandorojo opened this issue 3 years ago • 1 comments

Describe the bug

import { Dialog as TDialog, styled } from 'tamagui'

export const Dialog = TDialog

Dialog.Title = styled(Dialog.Title, {
  fontWeight: 'bold',
  color: '$color12',
  fontSize: '$7',
})

I expect this usage to override Dialog.Title's styles. However, styled doesn't appear to work. This makes it hard to have a reusable dialog component.

To Reproduce

Lmk if you need a repro.

nandorojo avatar Dec 05 '22 19:12 nandorojo

Hm, this works for me in the sandbox, even if i overwrite Dialog.Title:

image

natew avatar Dec 06 '22 03:12 natew

Closing for now unless you see again.

natew avatar Jan 29 '23 03:01 natew