mlaursen/react-md

Bordered Card has an inconsistent background color when using the raising dark mode elevation feature

Closed this issue · 0 comments

Light Theme ✅

Screen Shot 2021-01-22 at 9 30 51 AM

Dark Theme ❌

Screen Shot 2021-01-22 at 9 30 38 AM

This issue happens since the raising dark mode elevation has different "surface" value than the dark elevation for the current box shadow. I think to fix this I will:

  • add a new $rmd-card-bordered-background-color variable that is used just for this use case (might rename)
  • this variable will default to the same value as the box-shadowed cards