pagopa / mui-italia

Material-UI theme inspired by BootstrapItalia.
https://pagopa.github.io/mui-italia
MIT License
18 stars 5 forks source link

Updated EnvironmentBanner prop to pass background color to ribbon #482

Closed ruggerocastagnola closed 7 months ago

ruggerocastagnola commented 7 months ago

Short description

Instead of passing the environment, one should pass the color key (info or warning) to generate the appropriate color. This is an intermediate PR. The next one will give the opportunity to pass in any color in the MUI Italia palette. This is due to updated requirements in Interoperabilità after the introduction of the "Ambiente di attestazione" product.

Product

Interoperabilità

Before

One would pass the env property (test or prod) to set the ribbon background color

After

One would pass the bgColor property (info or warning) to set the ribbon background color