Skip to content

14.0.0

Compare
Choose a tag to compare
@haynlo haynlo released this 04 Sep 10:18
· 19 commits to main since this release
4650877

What's Changed

🔨 Breaking Changes

This version has several breaking changes that should be taken into account when updating the Mistica version in your project.

Brand values

There are 3 new brand values, which you will have to implement if you are using a brand based on one of the Mistica brands in your project:

title2FontWeight
title3FontWeight
title3FontSize

Token changes

The following tokens have been renamed, so you will need to update these references in your project:

Old New
buttonDangerBackgroundSelected buttonDangerBackgroundPressed
buttonLinkDangerBackgroundSelected buttonLinkDangerBackgroundPressed
buttonLinkDangerBackgroundInverseSelected buttonLinkDangerBackgroundInversePressed
buttonLinkBackgroundSelected buttonLinkBackgroundPressed
buttonLinkBackgroundInverseSelected buttonLinkBackgroundInversePressed
buttonPrimaryBackgroundSelected buttonPrimaryBackgroundPressed
buttonPrimaryBackgroundInverseSelected buttonPrimaryBackgroundInversePressed
buttonSecondaryBorderSelected buttonSecondaryBorderPressed
buttonSecondaryBackgroundSelected buttonSecondaryBackgroundPressed
buttonSecondaryBorderInverseSelected buttonSecondaryBorderInversePressed
buttonSecondaryBackgroundInverseSelected buttonSecondaryBackgroundInversePressed
textButtonPrimaryInverseSelected textButtonPrimaryInversePressed
textButtonSecondarySelected textButtonSecondaryPressed
textButtonSecondaryInverseSelected textButtonSecondaryInversePressed

Title component changes

In addition to these changes, you will also need to update the uses of the Title component that are implementing a TITLE_2 style to the new TITLE_3 style:

Compose

com.telefonica.mistica.compose.title.Title(
    ...
   style = TitleStyle.TITLE_2 -> TitleStyle.TITLE_3
   ...
)

View

<com.telefonica.mistica.title.TitleView
   ...
   app:titleStyle="title2" -> "title3"
   ...
/>
com.telefonica.mistica.title.TitleView.setTitleStyle(
   TitleView.TITLE_2 -> TitleView.TITLE_3
)

We recommend that you do a general search of all the files in your project to confirm that all references to Title2 have been updated to Title3.

To do this you can enter the search terms title2 and title_2 with all search engine filters disabled in your IDE to ensure that you find the maximum number of references.

Full Changelog: 13.6.0...14.0.0