Skip to content

Commit

Permalink
fix!: remove color of warning frame around scenario results
Browse files Browse the repository at this point in the history
BREAKING CHANGE: the property `dashboard.warning` in the theme palette
is no longer used, it has been removed from the theme files

Co-authored-by: Emma Michelet <emma.michelet@cosmotech.com>
  • Loading branch information
csm-thu and COSMO-EMI committed Feb 12, 2024
1 parent 62594c1 commit c3d5cb0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions src/theme/custom/cosmoDark/palette.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,4 @@ export default {
login: {
main: '#2F363B',
},
dashboard: {
warning: 'rgba(255, 167, 38, 0.3)',
},
};
3 changes: 0 additions & 3 deletions src/theme/custom/cosmoLight/palette.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,4 @@ export default {
login: {
main: '#EBE7E2',
},
dashboard: {
warning: 'rgba(255, 167, 38, 0.3)',
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const ScenarioDashboardCard = () => {
expanded={isDashboardsAccordionExpanded}
data-cy="dashboards-accordion"
data-unsynced={hasRunBeenSuccessful && !isDashboardSync}
sx={{ pb: 1.5, pt: 1.5, bgcolor: hasRunBeenSuccessful && !isDashboardSync ? 'dashboard.warning' : undefined }}
sx={{ pb: 1.5, pt: 1.5 }}
>
<AccordionSummary
data-cy="dashboards-accordion-summary"
Expand Down

0 comments on commit c3d5cb0

Please sign in to comment.