Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IOAPPX-352] Add the new IO typeface #334

Merged
merged 25 commits into from
Nov 11, 2024
Merged

Conversation

dmnplb
Copy link
Collaborator

@dmnplb dmnplb commented Oct 8, 2024

Short description

This PR adds the new IO Titillio typeface. This change is visible only if experimental DS is on.

List of changes proposed in this pull request

  • Add the new Titillio typeface and relative font files
  • Remove references to ReadexPro

Preview

To watch a video reference (relative to a past iteration), please refer to the original PR:

How to test

  1. Run the example app
  2. Enable experimental DS and check every screen

dmnplb and others added 14 commits July 24, 2024 15:49
… a11y features (#312)

## Short description
This PR adds the new `IOText` component, which replaces the legacy
`BaseTypography` component. Compared to the previous component, `IOText`
has the following features:
- Built-in support for bold text, if set by the user (iOS only)
- Add the new typographic attributes, like `fontSize` and `lineHeight`
to the `makeFontStyleObject` function
- Manage required or optional props (like `style`) with a stricter
approach without using the `TypographyFactory`
- Based on the new `IOFontSize` scale

## List of changes proposed in this pull request
- Add the new `IOText` component
- Update all the typographic styles using `IOText`, bypassing the
`TypographyFactory`
- Update the typographic styles with a fallback theme color to ensure
built-in support for dark mode
- Add the new `useBoldTextEnabled` hook
- Deprecate `BaseTypography`
- Remove `LabelLink` in favor of `asLink` prop for all the `Label…` and
`Body` typographic styles
- Add the new `LabelMini` style
- Remove `MdH4`, `MdH5` and `MdH6` styles
- Improve `FeatureInfo` component API

### Preview


https://github.com/user-attachments/assets/a15bc7f5-9e93-4326-b427-501ed9edf1b0



### Co-authors
@CrisTofani 

## How to test
N/A

---------

Co-authored-by: Cristiano Tofani <[email protected]>
…plete of `IOText` when using `font` prop (#322)

## Short description
This PR fixes a number of issues that were encountered when adding
`IOText` to the main repo

## List of changes proposed in this pull request
- Set `Label…` default weight to `Semibold`, instead of `Bold` →
13819ba
- Fix wrong autocomplete of `IOText` when using `font` prop →
6f1496c
- Update `Label…` snapshots →
0ffdfcd

## How to test
N/A
> [!note]
> This PR depends on:
> * #312

## Short description
This PR adds the new IO typeface (temporarily named **Titillio**). This
change is visible only if experimental DS is on.

## List of changes proposed in this pull request
- Add the new `Titillio` typeface and relative font files
- Remove references to `ReadexPro`

### Preview


https://github.com/user-attachments/assets/eb1820dc-1f82-49e9-9218-1a2430ed6477



## How to test
1. Run the example app
2. Enable experimental DS and check every screen

---------

Co-authored-by: Cristiano Tofani <[email protected]>
This PR reverts #314 to avoid a `2.0.0`
release that includes the reference to the new `IO` typeface
@dmnplb dmnplb requested review from a team as code owners October 8, 2024 15:40
@dmnplb dmnplb changed the base branch from 2.x to main October 22, 2024 07:35
@dmnplb dmnplb merged commit 2ae0f1b into main Nov 11, 2024
6 checks passed
@dmnplb dmnplb deleted the IOAPPX-352-add-new-titillio-typeface branch November 11, 2024 12:56
dmnplb added a commit to pagopa/io-app that referenced this pull request Nov 11, 2024
…` typeface ✨ (#6319)

## Short description
This PR replaces the `ReadexPro` with the new custom typeface
`Titillio`.

## List of changes proposed in this pull request
- Remove `ReadexPro` folder
- Update `react-native-config` references to the new font
- Remove `LabelSmallAlt`, because it's replaceable with the `LabelSmall`
- Update `io-app-design-system` to `2.1.0`
- Update `reanimated` version to `3.15.0`

### Related PR
* pagopa/io-app-design-system#334

## How to test
Launch the app, browse some sections and check if everything is OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants