This repository has been archived by the owner on Nov 17, 2021. It is now read-only.
Releases: Financial-Times/o-colors
Releases · Financial-Times/o-colors
Fixed typo that got unfixed in merge conflicts
2.4.2 Fixed typo
Deprecated use cases that have been moved inside modules
Refactor
Main changes are:
- Move to SASS maps for much clearer syntax and cleaner code when reading it
- Remove 'disabled'. Complicated implementation, and no colours were disabled.
- Allow
$o-colors-use-cases
to be defined before the colors module is imported (the standard use cases are then prepended to the custom ones). This is really good, as it means no more complicated load order for products - you can define your custom use cases before you do all your Origami module imports (components should continue to useoColorsSetUseCase
). - Move all the deprecated use cases to the bottom of the use case list and mark lots of them for deprecation.
- Added a
default
argument tooColorsGetColorFor
to enable it to be used more elegantly with theoColorsFor
mixin. - It's now possible to override existing colour use cases when calling
oColorsSetUseCase
. Components should obviously not do this, but very useful for products that might want to redefine the brand colour or whatever.
Backwards-incompatible changes:
oColorsFor
previously returned a warning if you included properties in the propertylist argument that weren't defined for that use case. Now it will simply not output those properties. This feels better to me because it will make it easier to useoColorsFor
without a second argument.- Undefined colors and use cases which previously resulted in black now result in undefined.
- Removed
_oColorsGetPaletteColor
. Anything using it will break. - If anything defined
$o-colors-use-case-list
before importing the colors module, that variable will no longer be used (seriously doubt anything did that). - Placeholder classes have been removed, so any site using things like
@extend %o-colors-use-case-body-text
will now throw an error.
2.3.20
Fix demo load path for registry
Demo styling
2.3.19 Improve demos
2.3.18: Merge pull request #66 from Financial-Times/fastft-usecases
deprecated fastft use cases
Added oColorsFor mixin
import mixins
2.3.16 import mixins into main.
Fixed demos
Merge pull request #59 from Financial-Times/demos-fix Demos fix
Added oColorsSetUseCase and oColorsGetPaletteColor
Merge pull request #58 from Financial-Times/add-use-case Updated demos and addedsetusecase mixin