Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fleet][EUI Visual Refresh] Replace hardcoded colors with tokens (#20…
…4717) ## Summary Closes #202003 This PR replaces hardcoded custom colours with EUI tokens. Found occurrences in Fleet plugin codebase: - hex colours (`#[A-Fa-f0-9]{6}`) - colour names (`red`, `green`...). - [x] Agent activity flyout - [x] Multiple hardcoded colours changed to semantic tokens - [x] Missing security requirements page - [x] Border colour - [x] Multisteps integration installation - [x] There was an old styling polyfill that looks like it can be removed, the result is visually very similar. Note that [the proposal to introduce numberless steps was rejected based on accessibility concerns](elastic/eui#5836 (comment)). - [x] Agent donut chart - [x] Legacy component no longer in use - removed - [x] Quickstart package card styling - [x] Card border colour (cf. implementation in #179573) Not covered: - [Test custom space in Cypress test](https://github.com/elastic/kibana/blob/6cd2cd6cf83fcf18b7ab66ac3f38f11ab9d69f8a/x-pack/plugins/fleet/cypress/tasks/spaces.ts#L26) - [Mock useEuiTheme in Jest test](https://github.com/elastic/kibana/blob/6cd2cd6cf83fcf18b7ab66ac3f38f11ab9d69f8a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/installation_status.test.tsx#L26) - [Story](https://github.com/elastic/kibana/blob/6cd2cd6cf83fcf18b7ab66ac3f38f11ab9d69f8a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/integration_preference.stories.tsx#L24) - [Custom tag colours](https://github.com/elastic/kibana/blob/6cd2cd6cf83fcf18b7ab66ac3f38f11ab9d69f8a/x-pack/plugins/fleet/server/services/epm/kibana/assets/tag_assets.ts#L36-L57): note that these are defined in the backend. ## Screenshots Note: I'm struggling to test the integrations quick start (tested the colour by manually applying it on the normal Integrations page), any advice on this would be welcome. ### Before (`main` branch), Amsterdam theme Agent activity flyout, showing in progress and error activity items: <img width="800" alt="agent-activity-1-amsterdam-main" src="https://github.com/user-attachments/assets/853dd496-415d-46f0-b3e0-c8e1bd0de574" /> Agent activity flyout, showing a successful activity item: <img width="800" alt="agent-activity-2-amsterdam-main" src="https://github.com/user-attachments/assets/dfa16c8c-cb3d-49e1-857f-b4ed2f658ad0" /> Missing security requirements page: <img width="1919" alt="es-requirements-amsterdam-main" src="https://github.com/user-attachments/assets/c029aa06-9326-4489-8e12-e26516e612d4" /> Multisteps integration installation (step 1): <img width="1919" alt="multisteps-1-amsterdam-main" src="https://github.com/user-attachments/assets/942a8e4f-6ed0-4498-a192-34fb4a319e37" /> Multisteps integration installation (step 2): <img width="1919" alt="multisteps-2-amsterdam-main" src="https://github.com/user-attachments/assets/c1976c63-08cc-4a91-b8c0-8ae73cb4afda" /> For reference, the old agent donut chard component: ![old-fleet-ui](https://github.com/user-attachments/assets/6b309d8a-5417-45cb-bb6c-58d1d88009f5) ### After #### Amsterdam Agent activity flyout, showing in progress and error activity items: <img width="800" alt="agent-activity-1-amsterdam-branch" src="https://github.com/user-attachments/assets/6765c849-e4bd-4744-b108-2bdc3337ffa6" /> Agent activity flyout, showing a successful activity item: <img width="800" alt="agent-activity-2-amsterdam-branch" src="https://github.com/user-attachments/assets/29d7ef48-16f5-40f2-9686-2d1a7f8e5737" /> Missing security requirements page: <img width="1918" alt="es-requirements-amsterdam-branch" src="https://github.com/user-attachments/assets/372807ad-41cb-4945-8300-eaba15a40db4" /> Multisteps integration installation (step 1): <img width="1918" alt="multisteps-1-amsterdam-branch" src="https://github.com/user-attachments/assets/41c566f0-200b-4cd6-a579-cc50292f4a56" /> Multisteps integration installation (step 2): <img width="1918" alt="multisteps-2-amsterdam-branch" src="https://github.com/user-attachments/assets/647ef4a8-d190-4a84-8a8c-07973cd600f8" /> #### Borealis Agent activity flyout, showing in progress and error activity items: <img width="800" alt="agent-activity-1-borealis-branch" src="https://github.com/user-attachments/assets/1e9cbd66-82de-48ca-9550-e226c808c3e5" /> Agent activity flyout, showing a successful activity item: <img width="800" alt="agent-activity-2-borealis-branch" src="https://github.com/user-attachments/assets/690792f5-8c8f-4665-ba2d-72a087be8bae" /> Missing security requirements page: <img width="1918" alt="es-requirements-borealis-branch" src="https://github.com/user-attachments/assets/a65bd707-2374-440b-9730-b48e8730edca" /> Multisteps integration installation (step 1): <img width="1918" alt="multisteps-1-borealis-branch" src="https://github.com/user-attachments/assets/ef0e8b99-3bf5-4da1-8b72-731741c6d322" /> Multisteps integration installation (step 2): <img width="1918" alt="multisteps-2-borealis-branch" src="https://github.com/user-attachments/assets/a4901126-7686-420e-b13d-9f0c63aa71c9" />
- Loading branch information