origami icon indicating copy to clipboard operation
origami copied to clipboard

Delete the B2C colour palette

Open notlee opened this issue 4 years ago • 1 comments

The B2C colour palette is not defined in the FTs Brand Guidelines and is not defined in Customer Products' Figma foundations file. It appears it is barely used.

Screenshot 2021-08-25 at 17 23 07

We have found references in some components, e.g. o-buttons, o-header-services: Screenshot 2021-08-25 at 17 25 12 Screenshot 2021-08-25 at 17 25 05

And the following (non-achieved) repositories:

  • https://github.com/Financial-Times/ip-lodestar-console/blob/master/client/styles.pcss#L38-L40
  • https://github.com/Financial-Times/n-live-chat/blob/main/src/scss/_popup.scss#L19
  • https://github.com/Financial-Times/next-tour-page/blob/main/client/community.scss#L132

Notes on potential next steps:

  • [x] Find screenshots of current use if possible.
  • [x] Propose deprecation to the design team, work on a migration path for usecases found.
  • [ ] Remove from o-colors
  • [ ] Remove use in o-header-services
  • [ ] Remove use in o-buttons

notlee avatar Aug 25 '21 16:08 notlee

The palette map accepts a map of options including a deprecated key. If we want to deprecate b2c colours before removing other Origami components which depend on o-colors will output deprecation warnings which users can't do anything about. This is frustrating for users as they can't take action to prevent the warnings. Since these b2c colours aren't used outside Origami, and o-buttons is a low level component, it might be better to hide the colours rather than deprecate (with a warning) and remove in a future major cascade from all places

notlee avatar Jan 26 '22 17:01 notlee