Skip to content

Composition issues with variant prop in several components like Alert, TextField, etc. #292

@brionmario

Description

@brionmario

Describe the issue:

There are type issues when variant prop is used in certain components.

Ex:

Screenshot 2024-10-14 at 20 35 11

This is reported in MUI as well: mui/material-ui#15697

How to reproduce:

Use the variant prop in Alert

Expected behavior:

TypeScript shouldn't complain.

Additional context :

  • Affected Package:
    • @oxygen-ui/logger
    • @oxygen-ui/primitives
    • @oxygen-ui/react
    • @oxygen-ui/react-icons
  • Library Version: [e.g., 1.10.0, 2.0.0-alpha]
  • OS:
    • Windows
    • Linux
    • Mac
    • Other
  • Browser:
    • Google Chrome
    • Firefox
    • Safari
    • Microsoft Edge
    • Brave
    • Opera
    • Other

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions