Closed jwdotjs closed 5 years ago
https://github.com/elm-street-technology/elevate-ui/blob/da04809feec51530e21548c95d404c083a50b7a8/src/ThemeProvider/index.js#L194
When a theme has overwrite, it's permanent thereafter. I think we can change this line to const mergedTheme = theme ? merge({}, defaultTheme, theme) : defaultTheme; to prevent permanent overwrite.
const mergedTheme = theme ? merge({}, defaultTheme, theme) : defaultTheme;
Published as 0.25.0
0.25.0
https://github.com/elm-street-technology/elevate-ui/blob/da04809feec51530e21548c95d404c083a50b7a8/src/ThemeProvider/index.js#L194
When a theme has overwrite, it's permanent thereafter. I think we can change this line to
const mergedTheme = theme ? merge({}, defaultTheme, theme) : defaultTheme;
to prevent permanent overwrite.