Skip to content

Commit

Permalink
update SOM sass (#204294)
Browse files Browse the repository at this point in the history
fix #202769

part of #199715

## Summary

Address changes required for introducing the Borealis theme to code
owned by @elastic-kibana-core.

## Notes
No visual changes were required
- switch `$euiColorSuccessText` to `$euiColorTextSuccess` and
`euiColorDangerText` to `euiColorTextDanger` in Saved Objects management
`.scss`.
- comment on status color map

## How to test
Start ES and KIB as:

`yarn es snapshot --license trial`
`KBN_OPTIMIZER_THEMES=experimental yarn start --no-base-path`

Add the following to `kibana.dev.yml`
`uiSettings.experimental.themeSwitcherEnabled: true`
`uiSettings.overrides.theme:name: borealis`

Alternatively, switch themes in Advanced Settings:

Stack Management > Advance Setting and change the theme to Borealis.
Import saved objects in Saved Objects Management
Verify the text color used for the successfully imported saved objects.

---------

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
TinaHeiligers and elasticmachine authored Dec 16, 2024
1 parent 49a5b2f commit c4b5a37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ function formatStatus(id: string, status: ServiceStatus): FormattedStatus {
},
};
}

/**
* Maps status to health color for frontend views
*/
export const STATUS_LEVEL_UI_ATTRS: Record<ServiceStatusLevelId, StatusUIAttributes> = {
critical: {
title: i18n.translate('core.status.redTitle', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
}

.savedObjectsManagementImportSummary__createdCount {
color: $euiColorSuccessText;
color: $euiColorTextSuccess;
}

.savedObjectsManagementImportSummary__errorCount {
color: $euiColorDangerText;
color: $euiColorTextDanger;
}

.savedObjectsManagementImportSummary__icon {
Expand Down

0 comments on commit c4b5a37

Please sign in to comment.