Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
chore: Remove flat white from defined colors again.
Browse files Browse the repository at this point in the history
The flat white color showed up in the icon color wheel and is a duplicate of the default white.
  • Loading branch information
Lara Aigmüller authored and tomheller committed Mar 12, 2020
1 parent 5647ae0 commit 5600ca6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export class BaIconColorWheel {

constructor(private _sanitizer: DomSanitizer) {
const groupedBlobs = Object.keys(DtColors)
/** breaking-change Can eb removed when flat_white is removed from the color list. 7.0.0 */
.filter(key => key !== 'FLAT_WHITE') // no flat white for the color wheel
.map((key): BaColorWheelBlob | undefined => {
/* tslint:disable no-magic-numbers */
const parts = key.split('_');
Expand Down
2 changes: 2 additions & 0 deletions libs/barista-components/core/src/style/_colors.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
$white: #ffffff;
/** @breaking-change Flat white will be removed with version 7.0.0 */
/** @deprecated Use $white instead */
$flat-white: #ffffff;

$turquoise-100: #e1f7f9;
Expand Down
2 changes: 2 additions & 0 deletions libs/barista-components/theming/src/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
*/
export enum DtColors {
WHITE = '#ffffff',
/** @breaking-change Flat white will be removed with version 7.0.0 */
/** @deprecated Use DtColors.WHITE instead */
FLAT_WHITE = '#ffffff',

BLUE_100 = '#e0f4fc',
Expand Down

0 comments on commit 5600ca6

Please sign in to comment.