mui / mui/material-ui

[Fab] Add Shadow Color Prop

Open
#36,484 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

component: Fab scope: button type: enhancement
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Duplicates
  • I have searched the existing issues
Latest version
  • I have tested the latest version
Summary 💡

Without monkeying with the theming or without overwriting the entire themed shadow, there isn't a direct way to modify the Fab component shadow. Implementing a shadowColor prop would be a beneficial API choice which would be useful with Dark Mode themes or other scenarios where there is a dark background to enable the "floating" effect.

Examples 🌈

No response

Motivation 🔦

Enhance design against dark backgrounds. Enable a consistent "floating" effect against dark backgrounds, even or especially in the case that the dark background exists isolated from a theme.

Beyond my use, exposing this as a prop could better enable other creative uses of the full color palette for Fab shadows.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Fab component and inspect how its themed shadow is currently applied, including the existing styling and prop patterns. Define the expected shadowColor behavior for dark backgrounds, then verify that the new prop changes only the Fab shadow without requiring theme overrides or replacing the full shadow.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
design, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.