Skip to content

Commit 9c4a7da

Browse files
committed
chore(*): update changelog
1 parent 4e93779 commit 9c4a7da

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,34 @@ All notable changes for each version of this project will be documented in this
4646
- `multi` mode - select/deselect all dates between the last selected/deselected and the one clicked while holding `Shift`.
4747
- `range` mode - extend/shorten the range from the last selected date to the one clicked while holding `Shift`.
4848

49+
### Theme Changes
50+
- **Breaking Changes** - The `palette` function no longer provides `info`, `success`, `warn` and `error` colors. Therefore you have to pass custom values for them if you need to use these colors. You can also use the values for `info`, `success`, `warn` and `error` colors from our predefined color palettes.
51+
52+
- Code example:
53+
54+
```scss
55+
// Mandatory colors
56+
$primary-color: #2a38b7;
57+
$secondary-color: #f96a88;
58+
$surface-color: #e1ebe4;
59+
// Additional colors
60+
$error-color: color($light-fluent-palette, 'error');
61+
$warn-color: color($light-fluent-palette, 'warn');
62+
$info-color: color($light-fluent-palette, 'info');
63+
$success-color: color($light-fluent-palette, 'success');
64+
65+
// Creating custom palette
66+
$my-color-palette: palette(
67+
$primary: $primary-color,
68+
$secondary: $secondary-color,
69+
$surface: $surface-color,
70+
$error: $error-color,
71+
$warn: $warn-color,
72+
$info: $info-color,
73+
$success: $success-color
74+
);
75+
```
76+
4977
## 14.2.0
5078

5179
### New Features

0 commit comments

Comments
 (0)