Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[alert] Slots missing #44138

Closed
ThreeCrown opened this issue Oct 17, 2024 · 2 comments
Closed

[alert] Slots missing #44138

ThreeCrown opened this issue Oct 17, 2024 · 2 comments
Labels
component: alert This is the name of the generic UI component, not the React module! customization: dom Component's DOM customizability, e.g. slot package: material-ui Specific to @mui/material status: waiting for author Issue with insufficient information

Comments

@ThreeCrown
Copy link

ThreeCrown commented Oct 17, 2024

Steps to reproduce

Use Mui Alert and attempt to set the backdrop
Does not set a backdrop

Current behavior

Currently working with an alert and attempting to set a backdropFilter to blur.
Classes only accept strings and I don't want to have to rewrite the entire CSS as I don't know the defaults
There is no slotProp for the root component so I can access the SX.

Expected behavior

Should be able to access slotProps for the root to reach it's SX to style.

Context

<Alert
          severity="error"
          variant="outlined"
          sx={{
            position: 'absolute',
            top: -55,
            left: 0,
            right: 0,
            zIndex: 10,
            borderRadius: '10px',
            background: 'linear-gradient(135deg, rgba(255,0,0,0.2), rgba(120,0,0,0.3))',
            backdropFilter: 'blur(20px)',
          }}
          iconMapping={{
            error: <ErrorOutline fontSize="medium" className="Alert-Icon" />,
          }}
        >

Your environment

No response

Search keywords: Alert Slots backdropFilter CSS SX Styles

@ThreeCrown ThreeCrown added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Oct 17, 2024
@siriwatknp siriwatknp added package: material-ui Specific to @mui/material component: alert This is the name of the generic UI component, not the React module! customization: dom Component's DOM customizability, e.g. slot and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 17, 2024
@ZeeshanTamboli
Copy link
Member

ZeeshanTamboli commented Nov 12, 2024

@ThreeCrown I didn't understand your issue. Using sx on the root, as shown above, applies the style directly to the Alert root.

@ZeeshanTamboli ZeeshanTamboli added the status: waiting for author Issue with insufficient information label Nov 12, 2024
Copy link

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

@oliviertassinari oliviertassinari changed the title MUI Alert Slots Missing [alert] Slots missing Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: alert This is the name of the generic UI component, not the React module! customization: dom Component's DOM customizability, e.g. slot package: material-ui Specific to @mui/material status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

3 participants