[Fab] Add Shadow Color Prop
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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