Skip to content

Commit

Permalink
Fixed error on custom style and added doc for BC (#8297)
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoAlbano authored Feb 22, 2023
1 parent bac4d78 commit fbccbb5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo-shell/src/custom-style-dev.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ $theme: mat.define-light-theme(
color: (
primary: $primary,
accent: $accent,
warn: $warn
),
typography: $alfresco-typography
)
Expand Down
37 changes: 37 additions & 0 deletions docs/upgrade-guide/upgrade50-60.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ project.
- [New Classes or Services](#new-classes-or-services)
- [Properties and methods](#properties-and-methods)
- [Component selectors](#component-selectors)
- [Theme changes](#theme-changes)

## Library updates

Expand Down Expand Up @@ -251,3 +252,39 @@ To build a similar logic to the one in ```UserInfoComponent``` check implementat
### Properties and methods
### Component selectors
## Theme changes
v6.0.0 has improved the way that typography is injected into the ADF theme. Now the typography of ADF is taken from the material theme following the material design specifications :
before v6.0.0
```
@include mat-core($typography);
$primary: mat.define-palette($primary);
$accent: mat.define-palette($accent);
$warn: mat.define-palette($warn);
$theme: mat-light-theme($primary, $accent, $warn);

```
typography was already predefined inside ADF theme but this will prevent to inject different typography.
v6.0.0 and after
```
$typography: mat.define-typography-config(
...define your typography following material specifications
);

$primary: mat.define-palette($primary);
$accent: mat.define-palette($accent);
$warn: mat.define-palette($warn);
$theme: mat.define-light-theme(
(
color: (
primary: $primary,
accent: $accent,
warn: $warn
),
typography: $typography
)
);
```

0 comments on commit fbccbb5

Please sign in to comment.